/* ------------------------------------------------------------------
   The radar (radar.html, server/html_radar.go): the home page's free slots
   on a dial like a gauge, the day clockwise from the lower left to the
   lower right and the venues' names in the gap at the bottom. A page of its
   own, without the site's header and footer: a dark room the size of the
   screen with the radar in the middle, Skoutti beside it, and the day and
   the filters on the other side. Everything said about the day is in the
   radar: the summary and the aimed slot in the hub, the venues under the
   lamp and their prices in the gap. Each venue has a
   colour of its own for its balls, bands and the dot by its name
   (radarPalette in html_radar.go); lime is the user's own lamp and the
   picked day, and the radar's own sweep is a strong pink (--sweep-rgb), so
   what the radar does and what the user does are told apart at a glance.
   Warm gold is for time (the hand at now) and for a locked target, as
   everywhere else. Scoped to body.page-radar; home.css and pages.css are
   loaded with the page's head but scoped to classes this page does not use. */

/* --- The room ----------------------------------------------------------- */
/* site.css keeps a scrollbar on every page; this one fits the screen. */
html:has(> body.page-radar) {
    overflow-y: auto;
    background: #0d1116;
}
body.page-radar {
    --pico-transition: 0.08s ease-out;
    min-height: 100vh;
    min-height: 100svh;
    background:
        radial-gradient(ellipse 46% 58% at 50% 50%, rgba(168, 221, 94, 0.08), transparent 72%),
        radial-gradient(ellipse 70% 55% at 0% 100%, rgba(74, 85, 99, 0.5), transparent 70%),
        linear-gradient(160deg, #2b333e 0%, #182029 48%, #0d1116 100%);
    background-attachment: fixed;
    color: var(--day-text);
}

/* The room's grid. A wide screen (800px up, an upright iPad too) has two
   columns, as the Skoutti app on an iPad; a narrower one, one column; a
   short one (a phone on its side, 540px high or less), the radar the
   height of the screen beside a column of the rest (all further down). */
.page-radar .radar-room {
    --rr-pad: 24px;
    --rr-side: 270px;
    --rr-gap: 28px;
    /* The sweep's colour, as "r, g, b": its cone and the rings it sends
       off the balls it passes. --sweep-hi-rgb is its bright leading edge.
       A strong pink, green's opposite, keeps it apart from the user's lime
       lamp; the blue tried with it was 92, 176, 255 and 200, 230, 255. */
    --sweep-rgb: 255, 46, 160;
    --sweep-hi-rgb: 255, 128, 204;
    display: grid;
    grid-template-columns: minmax(var(--rr-side), 1fr) auto minmax(var(--rr-side), 1fr);
    /* The days span the first two rows, so the buttons sit right under
       the name; the filters span the next two beside the stale note and a
       finger's list, and the credit sits low on the right beside Skoutti,
       so the radar alone sets the height. */
    grid-template-rows: auto auto auto auto auto 1fr;
    grid-template-areas:
        "brand radar days"
        "actions radar days"
        "picks radar filters"
        "stale radar filters"
        "sector radar filters"
        "scout radar .";
    gap: 18px var(--rr-gap);
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    padding: var(--rr-pad);
}

/* --- The name ----------------------------------------------------------- */
.page-radar .rr-brand {
    grid-area: brand;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}
.page-radar .rr-wordmark {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-decoration: none;
}
.page-radar .rr-wordmark span {
    color: var(--link-light);
    font-weight: 700;
}
.page-radar .rr-wordmark:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--accent-top);
    outline-offset: 3px;
}
.page-radar .rr-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--day-name);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.page-radar .rr-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: 0.04em;
    line-height: 1;
}

/* --- Skoutti ------------------------------------------------------------ */
/* Low on the left, by the dial's start. It leans in while the pointer aims
   at a ball and hops once a ball is locked; all there is to say is in the
   radar itself, so it has no bubble. */
.page-radar .rr-scout {
    grid-area: scout;
    align-self: end;
    min-width: 0;
}
/* Venues left out for stale data or expired shared dates. */
.page-radar .rr-notes {
    grid-area: stale;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.page-radar .radar-stale {
    max-width: 300px;
    margin: 0;
    color: var(--lit-weekend);
    font-size: 12px;
    line-height: 1.35;
}
.page-radar .radar-stale b {
    color: #fff;
}

.page-radar .rr-mascot {
    display: block;
    margin-left: 18px;
    line-height: 0;
}
.page-radar .rr-mascot:focus-visible {
    border-radius: 12px;
    outline: 2px solid var(--accent-top);
    outline-offset: 4px;
}
.page-radar .rr-mascot img {
    width: 236px;
    height: auto;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
    transform-origin: 50% 90%;
    transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.3, 1.2);
}
.page-radar .rr-mascot:hover img,
.page-radar .radar-room:has(.radar-hub.has-target) .rr-mascot img {
    transform: translateX(6px) rotate(4deg);
}
.page-radar .radar-room:has(.radar-scope.is-locked) .rr-mascot img {
    transform: translateX(6px) rotate(4deg);
    animation: rr-hop 0.6s cubic-bezier(0.3, 0.7, 0.3, 1.2);
}
@keyframes rr-hop {
    0%,
    100% {
        translate: 0 0;
    }
    35% {
        translate: 0 -16px;
    }
    60% {
        translate: 0 0;
    }
    78% {
        translate: 0 -5px;
    }
}

/* --- The day ------------------------------------------------------------ */
/* A calendar of chips on dark glass; the picked day is lit from below, a
   short glowing lime line under it, as in the home page's day picker. */
.page-radar .rr-days {
    grid-area: days;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    align-self: start;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: var(--glass-track);
}
.page-radar .rr-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 2px 8px;
    border-radius: 10px;
    color: var(--day-date);
    line-height: 1.15;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: background 0.15s, color 0.15s;
}
.page-radar .rr-day:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.page-radar .rr-day:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}
.page-radar .rr-day-name {
    color: var(--day-name);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.page-radar .rr-day-date {
    font-size: 13px;
    font-weight: 650;
}
.page-radar .rr-day.is-weekend .rr-day-name {
    color: var(--weekend);
}
.page-radar .rr-day.is-active {
    background: linear-gradient(180deg, rgba(168, 221, 94, 0) 20%, rgba(168, 221, 94, 0.18));
    color: #fff;
}
.page-radar .rr-day.is-active .rr-day-name {
    color: var(--lit-name);
}
.page-radar .rr-day.is-active.is-weekend .rr-day-name {
    color: var(--lit-weekend);
}
.page-radar .rr-day.is-active::after {
    content: "";
    position: absolute;
    right: 24%;
    bottom: 2px;
    left: 24%;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-top);
    box-shadow: 0 0 8px rgba(168, 221, 94, 0.9);
}

/* --- The filters -------------------------------------------------------- */
/* Each a label over a track of faint glass; the picked option is a white
   key, as on the home page. */
.page-radar .rr-filters {
    grid-area: filters;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: start;
}
.page-radar .rr-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}
.page-radar .rr-label {
    padding-left: 4px;
    color: var(--day-muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.page-radar .rr-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 100%;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: var(--glass-track);
}
.page-radar .rr-opt {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--glass-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s, box-shadow 0.08s;
}
.page-radar .rr-opt:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.page-radar .rr-opt:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}
.page-radar .rr-opt.is-active {
    background: #fff;
    box-shadow: inset 0 -1px 0 rgba(20, 33, 61, 0.12);
    color: var(--navy-ink);
}
.page-radar button.rr-pred-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 34px;
    margin: 0;
    padding: 6px 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, box-shadow 0.08s;
}
.page-radar button.rr-pred-toggle:focus:not(:focus-visible) {
    box-shadow: none;
}
.page-radar button.rr-pred-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}
.page-radar button.rr-pred-toggle.is-active {
    background: #fff;
    box-shadow: inset 0 -1px 0 rgba(20, 33, 61, 0.12);
    color: var(--navy-ink);
}
.page-radar .rr-select {
    display: none;
}
.page-radar .rr-pred-computed {
    display: none;
    margin: 2px 0 0 4px;
    color: var(--day-muted);
    font-size: 11.5px;
    line-height: 1.3;
}
.page-radar .radar-room.has-preds .rr-pred-computed {
    display: block;
}

/* --- The way back and the clear button ---------------------------------- */
.page-radar .rr-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
/* A wide screen, as the Skoutti app on an iPad: Skoutti, the name and the
   way back on top, the filters in a row under them and the radar under
   those on the left; the sector's list in a column of its own on the right,
   always open; the days in one row across the whole screen at the bottom.
   Only with the height for it: the radar gets what the filters over it
   leave, so a short screen has a layout of its own (further down). */
@media (min-width: 800px) and (min-height: 541px) {
    .page-radar .radar-room {
        --rr-right: clamp(320px, 30vw, 420px);
        --rr-gap: 24px;
        /* What the left column holds besides the radar, and the days'
           row: the radar is as tall as what is left. */
        --rr-chrome: 248px;
        --rr-days-h: 60px;
        --rr-row-gap: 12px;
        grid-template-columns: auto minmax(0, 1fr) var(--rr-right);
        grid-template-rows: auto auto auto auto 1fr auto;
        grid-template-areas:
            "scout   brand   sector"
            "scout   actions sector"
            "filters filters sector"
            "stale   stale   sector"
            "radar   radar   sector"
            "days    days    days";
        gap: var(--rr-row-gap) var(--rr-gap);
    }
    .page-radar .radar-room:has(.rr-picks) {
        grid-template-areas:
            "scout   brand   picks"
            "scout   actions picks"
            "filters filters sector"
            "stale   stale   sector"
            "radar   radar   sector"
            "days    days    days";
    }
    .page-radar .rr-scout {
        align-self: center;
    }
    .page-radar .rr-mascot {
        margin: 0;
    }
    .page-radar .rr-mascot img {
        width: 72px;
    }
    .page-radar .rr-brand {
        align-self: end;
    }
    .page-radar .rr-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        align-self: start;
    }
    /* The filters in one row, each a label over its track. */
    .page-radar .rr-filters {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 10px 16px;
    }
    .page-radar .rr-pred-computed {
        flex-basis: 100%;
        margin: 0 0 0 4px;
    }
    .page-radar .radar-stale {
        max-width: none;
    }
    /* The days in one row across the screen, at the thumb and under the
       list's column too. */
    .page-radar .rr-days {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        align-self: end;
    }
    .page-radar .rr-picks {
        align-self: start;
        max-height: 28svh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}
@media (min-width: 800px) and (min-height: 541px) and (max-height: 820px) {
    .page-radar .radar-room {
        --rr-pad: 16px;
        --rr-chrome: 212px;
        --rr-days-h: 51px;
        --rr-row-gap: 8px;
    }
    .page-radar .rr-mascot img {
        width: 56px;
    }
    .page-radar .rr-day {
        padding: 4px 2px 6px;
    }
}
.page-radar .rr-table-wrap {
    position: relative;
    display: inline-flex;
}
.page-radar .rr-table {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--day-date);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.page-radar .rr-table-short {
    display: none;
}
.page-radar .rr-table-wrap.is-tip .rr-table {
    border-color: rgba(168, 221, 94, 0.72);
    color: #fff;
}
.page-radar .rr-table-tip {
    position: absolute;
    top: calc(100% + 9px);
    right: -12px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid rgba(168, 221, 94, 0.55);
    border-radius: 999px;
    background: rgba(14, 19, 24, 0.94);
    box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(168, 221, 94, 0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.page-radar .rr-table-tip[hidden] {
    display: none;
}
.page-radar .rr-table-tip::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 34px;
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(168, 221, 94, 0.55);
    border-left: 1px solid rgba(168, 221, 94, 0.55);
    background: rgba(14, 19, 24, 0.94);
    transform: rotate(45deg);
}
.page-radar .rr-table-tip-x {
    color: var(--day-muted);
    font-size: 14px;
    line-height: 1;
}
.page-radar .rr-table-wrap.is-tip .rr-table-tip {
    opacity: 1;
    transform: translateY(0);
}
.page-radar .rr-table:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.page-radar .rr-table:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}
/* --- A finger's sector --------------------------------------------------- */
/* On a touch screen, under the radar (beside it on a wide one): the venues
   under the lamp the finger left, each with its colour and price span, and
   its start times as booking buttons a thumb can hit (44px). */
.page-radar .rr-sector {
    grid-area: sector;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    margin: 0;
    overflow-anchor: none;
}
.page-radar .rr-sector[hidden] {
    display: none;
}
.page-radar .rr-sector-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.page-radar .rr-sheet-grip,
.page-radar .rr-sheet-toggle,
.page-radar .rr-sheet-backdrop {
    display: none;
}
.page-radar .rr-sector-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.page-radar .rr-sector-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding-left: 4px;
    color: var(--day-name);
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.page-radar .rr-share-btn,
.page-radar .rr-sector-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(168, 221, 94, 0.42);
    border-radius: 14px;
    background: rgba(168, 221, 94, 0.12);
    box-shadow: none;
    color: var(--lit-name);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.page-radar .rr-sector-share {
    flex: none;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
}
.page-radar .rr-sector-clear {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.page-radar .rr-sector-clear[hidden] {
    display: none;
}
.page-radar .rr-sector-clear:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.36);
}
.page-radar .rr-sector-clear:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}
.page-radar .rr-share-btn:hover,
.page-radar .rr-sector-share:hover {
    background: rgba(168, 221, 94, 0.22);
    border-color: rgba(168, 221, 94, 0.65);
    color: #fff;
}
.page-radar .rr-share-btn.is-active,
.page-radar .rr-sector-share.is-active {
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, var(--accent-top), var(--accent-bottom));
    color: var(--accent-ink);
}

/* Shared picks panel (?pick=). */
.page-radar .rr-picks {
    grid-area: picks;
    padding: 12px 14px;
    border: 1px solid rgba(168, 221, 94, 0.32);
    border-radius: 16px;
    background: rgba(14, 19, 24, 0.72);
}
.page-radar .rr-picks.picks-gone {
    border-color: rgba(255, 255, 255, 0.12);
}
.page-radar .rr-picks-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.page-radar .rr-picks-title {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}
.page-radar .rr-picks-summary {
    margin: 2px 0 0;
    color: var(--day-muted);
    font-size: 12px;
}
.page-radar .rr-picks-close {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--day-muted);
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}
.page-radar .rr-picks-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.page-radar .rr-picks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.page-radar .rr-picks-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    list-style: none;
}
.page-radar .rr-picks-time {
    flex: none;
    color: var(--lit-name);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.page-radar .rr-picks-venues {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.page-radar .rr-pick-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    width: auto;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid rgba(168, 221, 94, 0.55);
    border-radius: 999px;
    background: rgba(168, 221, 94, 0.14);
    box-shadow: none;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.page-radar .rr-pick-chip:hover {
    background: rgba(168, 221, 94, 0.28);
}
.page-radar .rr-pick-chip span {
    color: var(--day-date);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}
.page-radar .rr-pick-chip.is-taken,
.page-radar .rr-pick-chip.is-unknown {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--day-muted);
    text-decoration: line-through;
    cursor: default;
}
.page-radar .rr-pick-chip.is-taken span,
.page-radar .rr-pick-chip.is-unknown span {
    text-decoration: none;
}

.page-radar .rr-time.is-picked {
    border-color: #fff;
    background: rgba(168, 221, 94, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.page-radar .radar-room.is-picking .rr-time:not(.is-picked) {
    border-style: dashed;
}
.page-radar .rd-blip.is-shared-pick .rd-ball {
    stroke: #fff;
    stroke-width: 2.6;
}
.page-radar .rd-blip.is-share-picked .rd-ball {
    stroke: #a8dd5e;
    stroke-width: 3.2;
}
.page-radar .rd-blip.is-share-picked .rd-halo {
    opacity: 0.9 !important;
}
.page-radar .hub-share {
    pointer-events: auto;
    width: auto;
    margin: 0;
    padding: 0.5em 0.9em;
    border: 1px solid rgba(168, 221, 94, 0.45);
    border-radius: 999px;
    background: rgba(168, 221, 94, 0.14);
    box-shadow: none;
    color: #fff;
    font-size: clamp(10.5px, 1.85cqw, 13.5px);
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}
.page-radar .hub-share:hover {
    background: rgba(168, 221, 94, 0.28);
}

/* Bottom share bar when picking slots. */
.page-radar .share-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 0 16px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 19, 24, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 -10px 28px -12px rgba(0, 0, 0, 0.65);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
}
.page-radar .share-bar.is-shown {
    transform: none;
    visibility: visible;
    transition: transform 0.22s ease;
}
.page-radar .radar-room.is-picking {
    padding-bottom: 92px;
}
.page-radar .share-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 780px;
    margin: 0 auto;
    padding: 10px 0;
}
.page-radar .share-bar-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.page-radar .share-bar-title {
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
}
.page-radar .share-bar-summary {
    overflow: hidden;
    color: var(--glass-text);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.page-radar .share-bar-cancel {
    flex: none;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.page-radar .share-bar-send {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 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: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: var(--accent-emboss);
}
.page-radar .share-bar-send[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
}
.page-radar .rr-sector-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.page-radar .rr-sector-list li {
    margin: 0;
    list-style: none;
}
.page-radar .rr-sv {
    padding: 10px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: var(--glass-track);
}
.page-radar .rr-sv-head {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0 0 8px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.25;
}
.page-radar .rr-sv-dot {
    color: rgb(var(--vc, 168, 221, 94));
    font-size: 0.85em;
}
.page-radar .rr-sv-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-radar .rr-sv-price {
    flex: none;
    margin-left: auto;
    color: var(--lit-name);
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.page-radar .rr-sv-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.page-radar .rr-time {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 64px;
    min-height: 44px;
    padding: 4px 10px;
    border: 1px solid rgba(var(--vc, 168, 221, 94), 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    line-height: 1.15;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.page-radar .rr-time:not(.is-picked):hover,
.page-radar .rr-time:not(.is-picked):active,
.page-radar .rr-time:not(.is-picked).is-dial-hover {
    border-color: rgba(var(--vc, 168, 221, 94), 0.58);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.page-radar .rr-time.is-dial-locked {
    border-color: var(--lit-weekend);
    background: rgba(243, 216, 138, 0.16);
    box-shadow: 0 0 0 1px rgba(243, 216, 138, 0.45);
}
.page-radar .rr-sp-chip.is-dial-hover {
    border-color: #fff;
    background: rgba(var(--pred-rgb), 0.28);
}
.page-radar .rr-time:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}
/* Pico gives a b its own colour. */
.page-radar .rr-time b {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.page-radar .rr-time span {
    color: var(--day-name);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.page-radar .rr-st-clock {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.page-radar .rr-st-count {
    color: var(--day-muted);
    font-weight: 600;
}
.page-radar .rr-time.rr-time-venue {
    align-items: flex-start;
    gap: 2px;
    padding: 6px 10px;
}
.page-radar .rr-time.rr-time-venue b {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 700;
}
.page-radar .rr-time.rr-time-venue .rr-sv-dot {
    color: rgb(var(--vc, 168, 221, 94));
    font-size: 0.78em;
}
.page-radar .rr-time.rr-time-venue .rr-tv-name {
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
}
.page-radar .rr-time.rr-time-venue .rr-tv-sub {
    color: var(--day-muted);
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.page-radar .rr-time.rr-time-venue .rr-tv-price {
    color: var(--day-text);
    font-size: 12px;
    font-weight: 700;
}
.page-radar .rr-time.rr-time-venue .rr-tv-freed {
    margin-top: 2px;
    color: rgba(232, 197, 122, 0.72);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.page-radar .rr-time.rr-time-venue.is-picked .rr-tv-freed {
    color: rgba(255, 255, 255, 0.8);
}
/* Dedicated right-hand sector panel on wide desktop screens: pinned header
   and independently scrollable body so slots and dial stay side by side. */
@media (min-width: 800px) and (min-height: 541px) {
    .page-radar .rr-sector {
        align-self: stretch;
        gap: 12px;
        /* The column's height: the screen less the days' row under it. */
        height: calc(100svh - 2 * var(--rr-pad) - var(--rr-days-h) - var(--rr-row-gap));
        max-height: calc(100svh - 2 * var(--rr-pad) - var(--rr-days-h) - var(--rr-row-gap));
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background: rgba(14, 19, 24, 0.56);
        box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.55);
    }
    .page-radar .radar-room:has(.rr-picks) .rr-sector {
        height: auto;
        max-height: calc(100svh - 2 * var(--rr-pad) - var(--rr-days-h) - 180px);
    }
    .page-radar .rr-sector-head {
        flex: none;
        flex-wrap: wrap;
        padding-bottom: 2px;
    }
    .page-radar .rr-sector-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
        padding-right: 2px;
        content-visibility: auto;
        contain-intrinsic-size: auto 320px auto 500px;
    }
    @supports not (content-visibility: auto) {
        .page-radar .rr-sector-body {
            contain: layout style paint;
        }
    }
}

/* --- Site footer -------------------------------------------------------- */
.page-radar .site-footer {
    margin: 24px 0 0;
    padding: 40px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, #2a313b, #171b21);
    color: #aeb8c4;
    font-size: 14px;
}
.page-radar:has(.radar-room.is-picking) .site-footer {
    padding-bottom: 92px;
}
.page-radar .footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 64px;
}
.page-radar .footer-brand {
    max-width: 260px;
}
.page-radar .footer-brand p {
    margin: 10px 0 0;
    color: #aeb8c4;
    font-size: 13px;
    line-height: 1.5;
}
.page-radar .footer-logo {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.page-radar .footer-logo span {
    color: var(--link-light);
    font-weight: 700;
}
.page-radar .footer-cols {
    gap: 24px 56px;
}
.page-radar .site-footer .footer-col li {
    padding: 4px 0;
}
.page-radar .footer-title {
    margin-bottom: 8px;
    color: var(--day-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
}
.page-radar .site-footer a {
    color: var(--day-text);
    font-weight: 500;
}
.page-radar .site-footer a:hover {
    color: #fff;
}
.page-radar .footer-credit {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aeb8c4;
    font-size: 13px;
}
.page-radar .site-footer .footer-credit a {
    color: #fff;
    font-weight: 600;
}
@media (max-width: 768px) {
    .page-radar .site-footer {
        padding: 28px 0 24px;
    }
    .page-radar .footer-top {
        gap: 24px;
    }
}

/* --- The radar ---------------------------------------------------------- */
.page-radar .radar-stage {
    grid-area: radar;
    align-self: center;
    justify-self: center;
    min-width: 0;
}

/* --- The scope ---------------------------------------------------------- */
/* As tall as the screen and as wide as the room leaves between the side
   columns, at most 980px. A container, so the hub's type can be set in its
   width. */
.page-radar .radar-scope {
    position: relative;
    width: min(980px, calc(100vh - 2 * var(--rr-pad)), calc(100vw - 2 * (var(--rr-side) + var(--rr-gap) + var(--rr-pad)) - 16px));
    width: min(980px, calc(100svh - 2 * var(--rr-pad)), calc(100vw - 2 * (var(--rr-side) + var(--rr-gap) + var(--rr-pad)) - 16px));
    aspect-ratio: 1;
    margin: 0 auto;
    container-type: inline-size;
    /* The turning beam is a square whose corners sweep past the box; they
       paint nothing, but would widen a phone's page. The dial and its hour
       numbers stay inside the box. */
    overflow: hidden;
    overflow: clip;
}
@media (min-width: 800px) and (min-height: 541px) {
    /* As tall as the left column leaves under its header and over the
       days, as wide as it is. */
    .page-radar .radar-scope {
        width: min(
            980px,
            calc(100vh - 2 * var(--rr-pad) - var(--rr-chrome)),
            calc(100vw - var(--rr-right) - var(--rr-gap) - 2 * var(--rr-pad) - 16px)
        );
        width: min(
            980px,
            calc(100svh - 2 * var(--rr-pad) - var(--rr-chrome)),
            calc(100vw - var(--rr-right) - var(--rr-gap) - 2 * var(--rr-pad) - 16px)
        );
    }
}
/* Laid over the square box rather than in its flow, so nothing (Pico gives
   an svg a bottom margin) can stretch the box out of square and the beam
   off the dial. */
.page-radar .radar-svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: visible;
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}

.page-radar .rd-face {
    fill: url(#rd-face-fill);
}
.page-radar .rd-bezel {
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 2;
}
.page-radar .rd-grid line {
    stroke: rgba(168, 221, 94, 0.12);
    stroke-width: 1.5;
    stroke-dasharray: 3 9;
}
/* The day's two ends bound the gauge, solid and a little brighter. */
.page-radar .rd-grid .spoke-end {
    stroke: rgba(223, 229, 238, 0.22);
    stroke-width: 2;
    stroke-dasharray: none;
}
/* Today, the hours gone by: a shade over the day from its start to now. */
.page-radar .rd-past {
    fill: rgba(4, 7, 10, 0.4);
}
.page-radar .rd-ring {
    fill: none;
    stroke: rgba(207, 233, 166, 0.09);
    stroke-width: 1.2;
    transition: stroke 0.2s;
}
.page-radar .rd-ring.is-aim {
    stroke: rgba(207, 233, 166, 0.5);
}
/* --vc is the venue's colour (RadarColor.Glow), on its bands, balls and
   the dot by its name; lime where there is none. */
.page-radar .rd-band {
    fill: none;
    stroke: rgba(var(--vc, 168, 221, 94), 0.2);
    transition: opacity 0.2s, stroke 0.2s;
}

.page-radar .rd-ticks line {
    stroke: rgba(223, 229, 238, 0.34);
    stroke-width: 2;
}
.page-radar .rd-ticks .tick-half {
    stroke: rgba(223, 229, 238, 0.16);
}
.page-radar .rd-ticks .tick-major {
    stroke: rgba(223, 229, 238, 0.8);
    stroke-width: 3;
}
.page-radar .rd-hours text {
    fill: var(--day-name);
    font-size: 21px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: central;
    font-variant-numeric: tabular-nums;
}
.page-radar .rd-hours .hr-major {
    fill: #fff;
    font-size: 25px;
    font-weight: 800;
}
/* The venues' names on their rings in the gap at the bottom: a legend that
   lights up when a ball on that ring is aimed at. */
.page-radar .rd-labels text {
    fill: rgba(223, 229, 238, 0.62);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 650;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    transition: fill 0.2s, opacity 0.2s;
}
.page-radar .rd-labels text.is-aim {
    fill: var(--lit-name);
}
/* The venue's colour beside its name, the name itself in the text's ink. */
.page-radar .rd-labels .rd-dot {
    fill: rgb(var(--vc, 168, 221, 94));
}
/* Under the lamp (radar.js): the venues with balls in it bright, each with
   its price span there, the rest faded. */
.page-radar .rd-labels.lamp-on text:not(.in-lamp) {
    opacity: 0.3;
}
.page-radar .rd-labels text.in-lamp {
    fill: #fff;
}
.page-radar .rd-labels .rd-info {
    fill: var(--lit-name);
    font-size: 0.8em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.page-radar .rd-labels .rd-num {
    display: none;
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
}
/* Desktop pointer enhancements: interactive venue labels, grab cursor for
   sector drag, and list-to-dial hover highlight. Touch screens keep labels
   non-interactive so taps pass through to the dial. */
@media (hover: hover) and (pointer: fine) {
    .page-radar .radar-svg.has-js {
        cursor: grab;
    }
    .page-radar .radar-scope.is-dragging .radar-svg.has-js {
        cursor: grabbing;
    }
    .page-radar .radar-svg.has-js .rd-label {
        pointer-events: auto;
        cursor: pointer;
    }
    .page-radar .radar-svg.has-js .rd-label:hover,
    .page-radar .radar-svg.has-js .rd-label:focus-visible {
        fill: #fff;
        outline: none;
    }
    .page-radar .radar-svg.has-js .rd-label.is-picked {
        fill: #fff;
        font-weight: 800;
        opacity: 1;
        text-decoration: underline;
        text-decoration-color: rgb(var(--vc, 168, 221, 94));
        text-underline-offset: 3px;
    }
    .page-radar .radar-svg.has-venue-picks .rd-label:not(.is-picked) {
        opacity: 0.32;
    }
    .page-radar .radar-svg.has-venue-picks .rd-blip:not(.is-picked),
    .page-radar .radar-svg.has-venue-picks .rd-band:not(.is-picked) {
        opacity: 0.16;
    }
    .page-radar .radar-svg.is-venue-hover .rd-ring.is-venue-hover {
        stroke: rgba(207, 233, 166, 0.55);
    }
    .page-radar .radar-svg.is-venue-hover .rd-blip:not(.is-venue-hover),
    .page-radar .radar-svg.is-venue-hover .rd-band:not(.is-venue-hover) {
        opacity: 0.16;
    }
    .page-radar .radar-svg.is-venue-hover .rd-blip.is-venue-hover,
    .page-radar .radar-svg.is-venue-hover .rd-band.is-venue-hover {
        opacity: 1;
    }
}
.page-radar .rd-blip.is-list-hover .rd-ball {
    stroke: #fff;
    stroke-width: 2.5;
}
.page-radar .rd-blip.is-list-hover .rd-halo {
    opacity: 0.95 !important;
}
.page-radar .rd-pred.is-list-hover .rd-pred-ring {
    fill: rgba(var(--pred-rgb), 0.25);
    stroke: #fff;
    stroke-width: 2.2;
    transform: scale(1.25);
}

/* The hand at now, in the warm gold the site keeps for time. */
.page-radar .rd-now line {
    stroke: var(--lit-weekend);
    stroke-width: 3;
    stroke-linecap: round;
}
.page-radar .rd-now circle {
    fill: var(--lit-weekend);
    stroke: rgba(243, 216, 138, 0.35);
    stroke-width: 8;
}

/* The balls: a lit sphere in the venue's colour with a soft glow, flashing
   when the beam passes over it. --d is when the beam first reaches it. */
/* --z is set by radar.js: the balls under the lamp grow a little. The
   whole ball grows, glow and ping with it, about its own centre. */
.page-radar .rd-blip {
    cursor: pointer;
    outline: none;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(var(--z, 1));
    transition: opacity 0.2s, transform 0.16s ease-out;
}
/* The fill is the venue's gradient, set on the ball (rd-ball-N). */
.page-radar .rd-ball {
    stroke: rgba(14, 19, 24, 0.55);
    stroke-width: 1;
    transform-box: fill-box;
    transform-origin: center;
    animation: rd-in 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.35) both;
    animation-delay: calc(var(--d, 0s) * 0.14);
}
.page-radar .rd-halo {
    opacity: 0.55;
    transform-box: fill-box;
    transform-origin: center;
    animation: rd-flash var(--sweep-period, 7.5s) ease-out infinite;
    animation-delay: var(--d, 0s);
}
/* The ring the sweep sends off a ball, in the sweep's colour. */
.page-radar .rd-ping {
    fill: none;
    stroke: rgb(var(--sweep-hi-rgb));
    stroke-width: 2.5;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: rd-ping var(--sweep-period, 7.5s) linear infinite;
    animation-delay: var(--d, 0s);
    pointer-events: none;
}
/* Scale only, no fade: where animations do not run, a ball waiting for its
   turn is small but never invisible. */
@keyframes rd-in {
    from {
        transform: scale(0.25);
    }
    to {
        transform: scale(1);
    }
}
@keyframes rd-flash {
    0% {
        opacity: 1;
        transform: scale(1.3);
    }
    18%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }
}
/* A little ring, soon gone: the sweep is felt more than watched. */
@keyframes rd-ping {
    0% {
        opacity: 0.75;
        transform: scale(1);
    }
    18%,
    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}
/* One light at a time: while the user's lamp is on (a pointer or a finger
   on the dial, or a locked target; radar.js sets is-manual), the radar's
   own sweep fades away and the balls stop pulsing. The beam turns on
   unseen and the animations run on, so it all comes back in step;
   !important outweighs the running animations' values. */
.page-radar .radar-sweep {
    transition: opacity 0.5s ease;
}
.page-radar .radar-scope.is-manual .radar-sweep {
    opacity: 0;
}
.page-radar .radar-scope.is-manual .rd-ping {
    opacity: 0 !important;
}
.page-radar .radar-scope.is-manual .rd-halo {
    opacity: 0.55 !important;
    transform: none !important;
}
/* Unseen, the sweep's animations pause too, all at once so they stay in
   step, which leaves a phone's frames to the finger. */
.page-radar .radar-scope.is-manual .radar-beam,
.page-radar .radar-scope.is-manual .rd-halo,
.page-radar .radar-scope.is-manual .rd-ping {
    animation-play-state: paused;
}
/* The balls of the selected sector are lit already: the sweep passes them
   by without a pulse. */
.page-radar .rd-blip.in-sector .rd-ping {
    opacity: 0 !important;
}
.page-radar .rd-blip.in-sector .rd-halo {
    opacity: 0.55 !important;
    transform: none !important;
}
.page-radar .rd-blip.is-target .rd-ball,
.page-radar .rd-blip:focus-visible .rd-ball {
    stroke: #fff;
    stroke-width: 2.5;
}

/* Predictions: hollow dashed circles for fully booked hours, hidden unless
   the forecast toggle is active (.radar-room.has-preds). */
.page-radar .rd-preds,
.page-radar .rd-blip-pred {
    display: none;
}
.page-radar .radar-room.has-preds .rd-preds,
.page-radar .radar-room.has-preds .rd-blip-pred {
    display: block;
}
/* With the forecasts off, a sector with little or nothing free lights its
   likeliest releases (radar.js: likelyIn), as the app does. */
.page-radar .radar-room:not(.has-preds) .rd-preds {
    display: block;
}
.page-radar .radar-room:not(.has-preds) .rd-pred:not(.is-likely) {
    display: none;
}
.page-radar .radar-room:not(.has-preds) .rd-pred.is-likely {
    pointer-events: none;
}
.page-radar .rd-pred.is-likely .rd-pred-ring {
    fill: rgba(var(--pred-rgb), 0.25);
}
.page-radar .rd-blip-pred {
    fill: none;
    stroke: #ffd166;
    stroke-width: 1.8;
    stroke-dasharray: 2.5 2;
    pointer-events: none;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(1.45);
}
.page-radar .rd-pred {
    --pred-rgb: 223, 154, 47;
    cursor: pointer;
    outline: none;
}
.page-radar .rd-pred-low { --pred-rgb: 212, 103, 92; }
.page-radar .rd-pred-mid { --pred-rgb: 223, 154, 47; }
.page-radar .rd-pred-high { --pred-rgb: 168, 221, 94; }
.page-radar .rd-pred-top { --pred-rgb: 76, 175, 80; }
.page-radar .rd-pred-hit {
    fill: transparent;
}
.page-radar .rd-pred-ring {
    fill: rgba(var(--pred-rgb), 0.12);
    stroke: rgb(var(--pred-rgb));
    stroke-width: 1.8;
    stroke-dasharray: 3.5 2.5;
    transition: transform 0.15s, stroke-width 0.15s;
    transform-box: fill-box;
    transform-origin: center;
}
.page-radar .rd-pred.is-target .rd-pred-ring,
.page-radar .rd-pred:focus-visible .rd-pred-ring {
    fill: rgba(var(--pred-rgb), 0.25);
    stroke: #fff;
    stroke-width: 2.2;
    transform: scale(1.25);
}
@media (hover: none) and (pointer: coarse) {
    .page-radar .radar-svg.has-js .rd-pred {
        pointer-events: none;
    }
}

.page-radar .hub-pred {
    margin: 0.3cqw 0 0;
    color: var(--lit-name);
    font-size: clamp(9px, 1.45cqw, 11.5px);
    font-weight: 600;
    line-height: 1.25;
}
.page-radar .rd-court-pred {
    --pred-rgb: 223, 154, 47;
    border-color: rgba(var(--pred-rgb), 0.65);
    background: rgba(var(--pred-rgb), 0.16);
    color: #fff;
}
.page-radar .rd-court-pred.rd-pred-low { --pred-rgb: 212, 103, 92; }
.page-radar .rd-court-pred.rd-pred-mid { --pred-rgb: 223, 154, 47; }
.page-radar .rd-court-pred.rd-pred-high { --pred-rgb: 168, 221, 94; }
.page-radar .rd-court-pred.rd-pred-top { --pred-rgb: 76, 175, 80; }

/* Mobile sector predictions below the free courts list. */
.page-radar .rr-sector-preds {
    margin-top: 10px;
    padding: 9px 12px 10px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(14, 19, 24, 0.55);
}
.page-radar .rr-sector-preds-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0 0 8px;
}
.page-radar .rr-sector-preds-title {
    margin: 0;
    color: var(--day-name);
    font-size: 12px;
    font-weight: 700;
}
.page-radar .rr-sector-preds-meta {
    margin: 0;
    color: var(--day-muted);
    font-size: 11px;
}
.page-radar .rr-sector-preds-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.page-radar .rr-sp-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    list-style: none;
}
.page-radar .rr-sp-head {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
}
.page-radar .rr-sp-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.page-radar .rr-sp-chip {
    --pred-rgb: 223, 154, 47;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(var(--pred-rgb), 0.55);
    border-radius: 999px;
    background: rgba(var(--pred-rgb), 0.14);
    font-size: 12.5px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.page-radar .rr-sp-chip .rr-sv-dot {
    color: rgb(var(--vc, 168, 221, 94));
    font-size: 0.72em;
}
.page-radar .rr-sp-chip b {
    color: #fff;
    font-weight: 700;
}
.page-radar .rr-sp-pct {
    color: var(--lit-name);
    font-size: 11.5px;
    font-weight: 700;
}
/* The likeliest releases of a thin sector: a plain line each. */
.page-radar .rr-sector-preds-list.is-likely-list {
    gap: 2px;
}
.page-radar .rr-sp-chip.rr-sl-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 14px;
}
.page-radar .rr-sl-clock {
    color: var(--day-muted);
    font-size: 13px;
    font-weight: 600;
}
.page-radar .rr-sp-pct.rr-sl-pct {
    margin-left: auto;
    color: rgb(var(--pred-rgb));
    font-size: 13.5px;
    font-weight: 800;
}
.page-radar .rr-sector-preds-note {
    margin: 8px 0 0;
    color: var(--day-muted);
    font-size: 11px;
    line-height: 1.35;
}
.page-radar .rr-sp-chip.rd-pred-low { --pred-rgb: 212, 103, 92; }
.page-radar .rr-sp-chip.rd-pred-mid { --pred-rgb: 223, 154, 47; }
.page-radar .rr-sp-chip.rd-pred-high { --pred-rgb: 168, 221, 94; }
.page-radar .rr-sp-chip.rd-pred-top { --pred-rgb: 76, 175, 80; }
.page-radar .rr-time-hit {
    font-size: 11px;
}

/* The lamp: a lit sector two hours wide that follows the pointer or a
   finger round the dial, with a bright rim on the dial's edge. It turns
   about the dial's centre: the view-box reference box starts at the user
   origin, 0,0, which is that centre (not at the viewBox's corner, so not
   50% 50%). */
.page-radar .rd-lamp {
    opacity: 0;
    pointer-events: none;
    transform-box: view-box;
    transform-origin: 0 0;
    transition: transform 0.12s ease-out, opacity 0.2s;
}
.page-radar .rd-lamp.on {
    opacity: 1;
}
/* The rush hour, selected as the radar starts: lit as the lamp is, and
   gone while the lamp is on. */
.page-radar .rd-prime {
    transition: opacity 0.25s;
}
.page-radar .rd-prime.off {
    opacity: 0;
}
/* First-time mobile visit: pulse the active sector edge in white and float
   a brief hint tooltip so new users see the sector can be dragged or tapped. */
@keyframes rd-intro-rim {
    0%, 100% {
        stroke: var(--accent-top);
        stroke-width: 6;
        filter: drop-shadow(0 0 6px rgba(168, 221, 94, 0.8));
    }
    50% {
        stroke: #fff;
        stroke-width: 9;
        filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.95));
    }
}
@keyframes rd-intro-fill {
    0%, 100% {
        stroke: transparent;
        stroke-width: 0;
    }
    50% {
        stroke: rgba(255, 255, 255, 0.55);
        stroke-width: 2.2;
    }
}
.page-radar .radar-scope.is-intro .rd-prime .rd-lamp-rim {
    animation: rd-intro-rim 1.15s ease-in-out 3;
}
.page-radar .radar-scope.is-intro .rd-prime .rd-lamp-fill {
    animation: rd-intro-fill 1.15s ease-in-out 3;
}
.page-radar .radar-intro-tip {
    position: absolute;
    top: 10%;
    left: 50%;
    z-index: 4;
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(14, 19, 24, 0.9);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(168, 221, 94, 0.25);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.page-radar .radar-scope.is-intro .radar-intro-tip {
    opacity: 1;
    transform: translate(-50%, 0);
}
/* A finger drags the lamp and the balls with no easing, so they keep up
   with it (radar.js moves them once a frame). */
.page-radar .radar-scope.is-dragging .rd-lamp {
    transition: opacity 0.2s;
}
.page-radar .radar-scope.is-dragging .rd-blip {
    transition: opacity 0.2s;
}
.page-radar .rd-lamp-fill {
    fill: url(#rd-lamp-fill);
}
.page-radar .rd-lamp-edges {
    fill: none;
    stroke: rgba(168, 221, 94, 0.45);
    stroke-width: 1.5;
    stroke-dasharray: 2 6;
}
.page-radar .rd-lamp-rim {
    fill: none;
    stroke: var(--accent-top);
    stroke-width: 6;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(168, 221, 94, 0.8));
}
/* Mobile-app style range knobs on the active sector's two outer corners. */
.page-radar .rd-handles[hidden] {
    display: none;
}
.page-radar .rd-handle {
    cursor: grab;
    outline: none;
    touch-action: none;
}
.page-radar .radar-scope.is-dragging .rd-handle {
    cursor: grabbing;
}
.page-radar .rd-handle-hit {
    fill: transparent;
}
.page-radar .rd-handle-knob {
    fill: #fff;
    stroke: var(--accent-top);
    stroke-width: 3.5;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.72));
    transition: transform 0.14s ease, stroke 0.14s ease;
}
.page-radar .rd-handle-core {
    fill: #0e1318;
    pointer-events: none;
}
.page-radar .rd-handle:hover .rd-handle-knob,
.page-radar .rd-handle:focus-visible .rd-handle-knob,
.page-radar .rd-handle.is-active .rd-handle-knob {
    transform: scale(1.22);
    stroke: #fff;
}
.page-radar .radar-scope.is-dragging .rd-handle-knob {
    transition: none;
}
/* The hour numbers the lamp falls on light up with it. */
.page-radar .rd-hours text {
    transition: fill 0.15s;
}
.page-radar .rd-hours text.lit {
    fill: var(--lit-name);
}
.page-radar .rd-hours .hr-major.lit {
    fill: #fff;
}

/* The reticle: brackets that glide to the ball the pointer aims at, a
   dashed ring turning inside them once the target is locked. */
.page-radar .rd-reticle {
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.15s;
}
.page-radar .rd-reticle.on {
    opacity: 1;
}
.page-radar .rd-reticle-corners {
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.page-radar .rd-reticle-ring {
    fill: none;
    stroke: var(--accent-top);
    stroke-width: 2;
    stroke-dasharray: 6 5;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity 0.15s;
}
.page-radar .rd-reticle.locked .rd-reticle-corners {
    stroke: var(--accent-top);
}
.page-radar .rd-reticle.locked .rd-reticle-ring {
    opacity: 1;
    animation: rd-spin 5s linear infinite;
}
@keyframes rd-spin {
    to {
        transform: rotate(360deg);
    }
}

/* The hub: a dark disc in the middle, edged gold once a target is locked,
   as the reticle and Skoutti's bubble are. */
.page-radar .rd-hub-disc {
    fill: #131920;
    stroke: rgba(168, 221, 94, 0.28);
    stroke-width: 2;
    transition: stroke 0.2s;
}
.page-radar .radar-scope.is-locked .rd-hub-disc {
    stroke: rgba(243, 216, 138, 0.8);
    stroke-width: 3;
}

/* What the hub says: the day, or the slot the pointer aims at and, once
   locked, its booking link. HTML over the disc, with its type set in the
   dial's width (cqw) and never below what a phone can read. */
.page-radar .radar-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5cqw;
    width: var(--hub-size);
    aspect-ratio: 1;
    padding: 2.6cqw;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    color: var(--day-date);
    line-height: 1.2;
    text-align: center;
}
.page-radar .radar-hub p {
    max-width: 100%;
    margin: 0;
}
.page-radar .hub-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1cqw;
    max-width: 100%;
}
.page-radar .hub-day {
    color: var(--day-name);
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(10px, 2cqw, 15px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.page-radar .hub-now {
    color: var(--lit-weekend);
}
/* The hub before a ball is aimed at: the rush hour (the sector selected),
   what is free in it and from what price, and a button to the next free
   slot. */
.page-radar .hub-rush {
    color: var(--lit-name);
    font-size: clamp(9.5px, 1.7cqw, 13px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.page-radar .hub-counts,
.page-radar .hub-few {
    color: #fff;
    font-size: clamp(12px, 2.6cqw, 21px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.page-radar .hub-few {
    font-size: clamp(11px, 2.2cqw, 18px);
}
.page-radar .hub-none {
    color: var(--day-name);
    font-weight: 700;
}
.page-radar .hub-price {
    color: var(--day-date);
    font-size: clamp(9.5px, 1.6cqw, 12.5px);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.page-radar .hub-hint {
    color: #aeb8c4;
    font-size: clamp(10px, 1.8cqw, 13.5px);
}
/* A finger: the names in the gap are a legend, too small to hit, so a tap
   there falls through to the dial (radar.js treats it as a tap outside);
   their price spans are in the list instead. */
@media (hover: none) and (pointer: coarse) {
    .page-radar .rd-labels .rd-info {
        display: none;
    }
    .page-radar .rd-reticle {
        display: none;
    }
    .page-radar .radar-svg.has-js .rd-blip {
        pointer-events: none;
        -webkit-touch-callout: none;
    }
}

/* A finger's sector in the hub: what is free in it. */
.page-radar .hub-where {
    color: var(--lit-name);
    font-size: clamp(9.5px, 1.6cqw, 12.5px);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.page-radar .hub-empty {
    color: var(--day-date);
}
.page-radar .hub-time {
    color: #fff;
    font-size: clamp(16px, 4.4cqw, 34px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
/* Pico gives a b its own colour. */
.page-radar .hub-time .t-start {
    color: #fff;
}
.page-radar .hub-time .t-end {
    margin-left: 0.12em;
    color: var(--day-name);
    font-size: 0.55em;
    font-weight: 600;
    letter-spacing: 0;
}
.page-radar .hub-venue {
    overflow: hidden;
    color: var(--lit-name);
    font-size: clamp(11px, 2.3cqw, 18px);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-radar .hub-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2em 0.6em;
    color: var(--day-date);
    font-size: clamp(9.5px, 1.75cqw, 13px);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
/* The free courts: one row of keys while aiming, two once the ball is
   locked and the hint has made room; as many as fit, then "+N" (radar.js).
   A key is 1.3em of line and 4px of padding and border. */
.page-radar .hub-courts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    max-width: 100%;
    max-height: calc(1.3em + 4px);
    overflow: hidden;
    font-size: clamp(9.5px, 1.55cqw, 12px);
}
.page-radar .radar-scope.is-locked .hub-courts {
    max-height: calc(2.6em + 11px);
}
.page-radar .hub-courts .rd-court {
    flex: none;
    padding: 1px 5px;
    font-size: 1em;
}
.page-radar .hub-meta .t-price {
    color: var(--lit-name);
}
.page-radar .hub-lock-hint {
    margin-top: 0.4cqw !important;
    font-size: clamp(9.5px, 1.55cqw, 12px);
}
.page-radar .hub-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8cqw;
    margin-top: 0.9cqw;
}
.page-radar .hub-book {
    pointer-events: auto;
    padding: 0.5em 1.15em;
    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: clamp(11px, 2cqw, 15px);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: var(--accent-emboss);
    white-space: nowrap;
}
.page-radar .hub-book:hover {
    color: var(--accent-ink);
    filter: brightness(1.06);
}
.page-radar .hub-book:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

/* The beam: a cone in the sweep's colour turning clockwise from
   --sweep-from, its leading edge bright. The still box around it shows it only over the day's arc,
   leaving the hub and the names in the gap clear; it turns on through the
   gap unseen, so it keeps its pace with the balls' flashes. */
.page-radar .radar-sweep {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    -webkit-mask:
        radial-gradient(closest-side, transparent calc(var(--sweep-hub) - 0.5%), #000 var(--sweep-hub)),
        conic-gradient(from var(--arc-from), #000 0deg var(--arc-span), transparent var(--arc-span));
    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(closest-side, transparent calc(var(--sweep-hub) - 0.5%), #000 var(--sweep-hub)),
        conic-gradient(from var(--arc-from), #000 0deg var(--arc-span), transparent var(--arc-span));
    mask-composite: intersect;
}
.page-radar .radar-beam {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(var(--sweep-rgb), 0) 0deg,
        rgba(var(--sweep-rgb), 0) 280deg,
        rgba(var(--sweep-rgb), 0.16) 322deg,
        rgba(var(--sweep-rgb), 0.42) 356deg,
        rgba(var(--sweep-hi-rgb), 0.85) 360deg);
    transform: rotate(var(--sweep-from));
    animation: rd-sweep var(--sweep-period, 7.5s) linear infinite;
}
@keyframes rd-sweep {
    from {
        transform: rotate(var(--sweep-from));
    }
    to {
        transform: rotate(calc(var(--sweep-from) + 360deg));
    }
}

/* A free court as a small key: in the hub and in Skoutti's bubble. */
.page-radar .rd-court {
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--day-date);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
/* "+4": the courts the hub has no room for. */
.page-radar .rd-court-more {
    border-style: dashed;
    color: var(--lit-name);
}

/* --- Narrower screens ---------------------------------------------------- */
/* One column: Skoutti, the name and the way back on top, the days in one
   scrolling row, the radar edge to edge, the filters under it. A short
   screen takes the same compact filters and days, in a column beside the
   radar (Short screens, further down). */
@media (max-width: 799px), (max-height: 540px) {
    .page-radar .radar-room {
        --rr-pad: 16px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: repeat(7, auto);
        min-height: 0;
        grid-template-areas:
            "scout brand actions"
            "picks picks picks"
            "days days days"
            "filters filters filters"
            "radar radar radar"
            "sector sector sector"
            "stale stale stale";
        gap: 14px 12px;
        max-width: 780px;
        margin: 0 auto;
        padding-bottom: 20px;
    }
    .page-radar .rr-brand {
        align-self: center;
    }
    .page-radar .rr-actions {
        justify-content: flex-end;
    }
    .page-radar .rr-scout {
        align-self: center;
    }
    .page-radar .rr-mascot {
        margin: 0;
    }
    .page-radar .rr-mascot img {
        width: 72px;
    }
    .page-radar .radar-stale {
        max-width: none;
    }
    .page-radar .rr-days {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .page-radar .rr-days::-webkit-scrollbar {
        display: none;
    }
    .page-radar .rr-day {
        flex: none;
        min-width: 54px;
    }
    .page-radar .radar-stage {
        justify-self: stretch;
    }
    .page-radar .radar-scope {
        width: min(100%, max(320px, calc(100vh - 2 * var(--rr-pad))));
        width: min(100%, max(320px, calc(100svh - 2 * var(--rr-pad))));
    }
    /* On mobile, each filter group collapses to a compact native <select>
       pill that opens the OS wheel/menu on tap, keeping every filter on screen
       without horizontal scrolling. */
    .page-radar .rr-filters {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }
    .page-radar .rr-group {
        flex: none;
    }
    .page-radar .rr-label {
        display: none;
    }
    .page-radar .rr-opts {
        flex-wrap: nowrap;
        padding: 2px;
    }
    .page-radar .rr-opts:has(.rr-select) {
        padding: 0;
        border: 0;
        background: transparent;
    }
    .page-radar .rr-opts:has(.rr-select) > .rr-opt {
        display: none;
    }
    .page-radar .rr-select {
        display: inline-block;
        width: auto;
        max-width: 100%;
        margin: 0;
        padding: 5px 22px 5px 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        background-color: var(--glass-track);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%23aeb8c4' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 9px 6px;
        box-shadow: none;
        color: #fff;
        color-scheme: dark;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.25;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        transition: border-color 0.08s, box-shadow 0.08s;
    }
    .page-radar button.rr-pred-toggle {
        min-width: 30px;
        padding: 4px 8px;
        font-size: 15px;
        line-height: 1.2;
    }
    .page-radar .rr-select:focus:not(:focus-visible) {
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }
    .page-radar .rr-select:focus-visible {
        outline: none;
        box-shadow: var(--ring);
    }
    .page-radar .rr-opt {
        padding: 6px 10px;
        font-size: 12.5px;
    }
    .page-radar .rr-share-text {
        display: none;
    }
    .page-radar .rr-share-btn {
        padding: 8px 10px;
    }
    .page-radar .rr-pred-computed {
        flex-basis: 100%;
        margin: 2px 0 0;
    }
}

@media (max-width: 768px), (max-height: 540px) {
    /* The radar edge to edge: on a phone every pixel of the dial counts. */
    .page-radar .radar-stage {
        margin: 0 calc(-1 * var(--rr-pad));
    }
    .page-radar .rr-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-radar .rr-wordmark {
        font-size: 19px;
    }
    .page-radar .rr-mascot img {
        width: 50px;
    }
    .page-radar .rr-actions {
        flex-wrap: nowrap;
        gap: 6px;
    }
    .page-radar .rr-table {
        padding: 7px 9px;
        gap: 4px;
        font-size: 12px;
    }
    .page-radar .rr-table-text {
        display: none;
    }
    .page-radar .rr-table-short {
        display: inline;
    }
    .page-radar .rr-title {
        gap: 5px;
        font-size: 10px;
        letter-spacing: 0.11em;
    }
    .page-radar .rd-hours text {
        font-size: 30px;
    }
    .page-radar .rd-hours .hr-major {
        font-size: 34px;
    }
    /* Too narrow for the names: the ring numbers, the names in their
       tooltips and, once picked, in the hub. */
    .page-radar .rd-labels-small .rd-label {
        display: none;
    }
    .page-radar .rd-labels-small .rd-num {
        display: inline;
    }
}

/* Pull-up bottom sheet on a phone held upright: opens slightly at first so
   the dial and slots stay visible together, drops out of the way when
   touching the dial, and expands or closes easily via the handle. Not on a
   phone on its side, where it would cover the radar: there the list is
   beside it (Short screens). radar.js's isSheetMode has the same query. */
@media (max-width: 768px) and (min-height: 541px), (max-width: 559px) {
    .page-radar .rr-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 24;
        display: block;
        background: rgba(8, 12, 16, 0.45);
        transition: opacity 0.22s ease;
    }
    .page-radar .rr-sheet-backdrop[hidden] {
        display: none;
    }
    .page-radar .rr-sector {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 25;
        gap: 0;
        max-width: 780px;
        height: var(--sheet-h, min(30dvh, 232px));
        max-height: 85dvh;
        margin: 0 auto;
        padding: 0 12px env(safe-area-inset-bottom);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-bottom: 0;
        border-radius: 20px 20px 0 0;
        background: rgba(16, 22, 29, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 -14px 36px -10px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        overflow: hidden;
        contain: layout style;
        transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1), bottom 0.22s ease;
    }
    .page-radar .rr-sector.is-sheet-dragging {
        transition: none;
    }
    .page-radar .radar-room.is-picking .rr-sector {
        bottom: calc(60px + env(safe-area-inset-bottom));
        max-height: calc(85dvh - 60px);
    }
    .page-radar .rr-sheet-handle,
    .page-radar .rr-sheet-handle button {
        touch-action: none;
    }
    .page-radar .rr-sheet-handle {
        flex: none;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 8px 2px 10px;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
    }
    .page-radar .rr-sheet-grip {
        display: block;
        align-self: center;
        width: 38px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.28);
    }
    .page-radar .rr-sector-head {
        padding: 0 2px;
    }
    .page-radar .rr-sector[data-snap="closed"] .rr-sector-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .page-radar .rr-sheet-toggle {
        flex: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        color: var(--day-date);
        cursor: pointer;
    }
    .page-radar .rr-sheet-toggle svg {
        transition: transform 0.22s ease;
    }
    .page-radar .rr-sector[data-snap="closed"] .rr-sheet-toggle svg {
        transform: rotate(180deg);
    }
    .page-radar .rr-sector-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        padding: 2px 0 14px;
    }
    html:has(> body.page-radar .rr-sector[data-snap="full"]),
    body.page-radar:has(.rr-sector[data-snap="full"]) {
        overflow: hidden;
        overscroll-behavior: none;
    }
    .page-radar .rr-sector[data-snap="closed"] .rr-sector-body {
        overflow: hidden;
        opacity: 0.3;
        pointer-events: none;
    }
    .page-radar .site-footer {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }
}

/* The narrowest phones, and a small phone on its side with its column
   beside the radar: the way back to the table as its icon alone, so the
   name beside Skoutti has its room; the smallest on its side leaves out
   Skoutti too (the name is the same link home). */
@media (max-width: 359px), (min-width: 560px) and (max-width: 719px) and (max-height: 540px) {
    .page-radar .rr-table-short {
        display: none;
    }
}
@media (min-width: 560px) and (max-width: 599px) and (max-height: 540px) {
    .page-radar .rr-scout {
        display: none;
    }
}

/* --- Short screens ------------------------------------------------------- */
/* A phone on its side, or a window too low for the radar under the
   filters: the radar as high as the screen on the left, kept there while
   the page scrolls, and beside it a column of Skoutti, the name and the way
   back, the days, the filters and the sector's list, so a finger on the
   dial and the times it lists are on screen together. The column keeps at
   least 236px; the radar gets the rest. */
@media (min-width: 560px) and (max-height: 540px) {
    .page-radar .radar-room {
        --rr-pad: 12px;
        --rr-dial: min(
            calc(100vh - 2 * var(--rr-pad)),
            calc(100vw - 2 * var(--rr-pad) - 12px - 236px)
        );
        --rr-dial: min(
            calc(100svh - 2 * var(--rr-pad)),
            calc(100vw - 2 * var(--rr-pad) - 12px - 236px)
        );
        grid-template-columns: var(--rr-dial) auto minmax(0, 1fr) auto;
        grid-template-rows: repeat(5, auto) 1fr;
        grid-template-areas:
            "radar scout   brand   actions"
            "radar picks   picks   picks"
            "radar stale   stale   stale"
            "radar days    days    days"
            "radar filters filters filters"
            "radar sector  sector  sector";
        gap: 10px 12px;
        max-width: none;
        margin: 0;
        padding: var(--rr-pad) max(var(--rr-pad), env(safe-area-inset-right)) var(--rr-pad) max(var(--rr-pad), env(safe-area-inset-left));
    }
    .page-radar .radar-room.is-picking {
        padding-bottom: 72px;
    }
    .page-radar .radar-stage {
        position: sticky;
        top: var(--rr-pad);
        align-self: start;
        justify-self: start;
        margin: 0;
    }
    .page-radar .radar-scope {
        width: var(--rr-dial);
    }
    .page-radar .rr-mascot img {
        width: 40px;
    }
    .page-radar .rr-days {
        padding: 4px;
    }
    .page-radar .rr-day {
        padding: 4px 2px 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-radar .radar-beam,
    .page-radar .rd-ball,
    .page-radar .rd-halo,
    .page-radar .rd-ping,
    .page-radar .rd-reticle.locked .rd-reticle-ring,
    .page-radar .radar-scope.is-intro .rd-prime .rd-lamp-rim,
    .page-radar .radar-scope.is-intro .rd-prime .rd-lamp-fill,
    .page-radar .rr-mascot img {
        animation: none !important;
    }
    .page-radar .rd-reticle,
    .page-radar .rd-lamp,
    .page-radar .rd-blip,
    .page-radar .rr-sector,
    .page-radar .rr-sheet-toggle svg,
    .page-radar .rr-mascot img {
        transition: none;
    }
}
