/* =========================================================================
   RaceFlow animation (animation.css)

   The stylesheet of the animated tracks map: animation.php's own <style>
   block, scoped (9 November 2026) so that the animation can live inside
   routing.php's map tab instead of being a page of its own. animation.js
   mounts the animation into a div of the class .race-anim, and every rule
   here starts at that class: nothing leaks out to the routing page, and the
   site's style.css is overridden nowhere outside the animation.

   What the root holds, as animation.php's body did without its header and
   its loading screen:

     .race-anim
       #main-container
         #sidebar        the fleet: one switch a boat, the telemetry columns
         #map-wrapper
           #anim-map     Leaflet's map
       #controls-wrapper the switches, the router's notes, play and the slider

   Renamed, because style.css has rules of the same name (the OpenLayers
   tracks map's) that would otherwise reach in:

     #map                              ->  #anim-map
     .boat-bubble                      ->  .anim-boat-bubble
                                           (.pos-top-right, .pos-bottom-right,
                                            .pos-top-left, .pos-bottom-left
                                            stay, as modifiers on it)
     .bubble-name                      ->  .anim-bubble-name
     body.show-info-panels .boat-bubble
                                       ->  .race-anim.show-info-panels
                                           .anim-boat-bubble
                                           (the class goes on the root, not
                                            on the body)

   Every other id and class keeps animation.php's name. The one place where
   .bubble-name is still written is the bubble on a point of a track
   (.anim-track-tip, at the end): that one is the Tracks Map's bubble, come
   over with the Tracks Map's class names.

   Left behind with the page: the html and body rules (what the animation
   needs of them is on .race-anim), #app-header and #event-title (the routing
   page has its own title), and the loading screen (#loading, #load-msg,
   #error-msg, .spinner and its spin keyframes: the data is already loaded
   when the animation is made). No @keyframes are left; one added later takes
   the prefix anim-.

   Sizes are border-box everywhere inside the root, as style.css makes them
   on the routing page. animation.php was content-box where it said nothing,
   so the three boxes that had both a size and a border carry the border in
   their size here (#sidebar, #sidebar-toggle-btn) and look as they did.
   ========================================================================= */

/* --- The root -------------------------------------------------------------
   A flex column that fills the height its parent gives it: the fleet and the
   map take what the controls leave. isolation keeps Leaflet's z-indexes (up
   to 1000) inside, so the map's panes and controls never come out over the
   routing page's sticky header or its dialogs. */
.race-anim {
    display: flex;
    flex-direction: column;
    /* its parent's whole width, also where the parent is a flex row (style.css's
       .map-wrapper is one), in which a div takes only its content's width */
    width: 100%;
    height: 78vh;
    min-height: 480px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #ecf0f1;
    border-radius: 0.4em;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: normal;
    text-align: left;
    background: #1a1a2e;
    color: #eee;
}

.race-anim,
.race-anim *,
.race-anim *::before,
.race-anim *::after {
    box-sizing: border-box;
}

/* The full-screen button's state: the same root, over the whole window. It is
   fixed to the viewport, so no ancestor of the root may have a transform or a
   filter (which would make it fixed to that ancestor instead). */
.race-anim.anim-fullscreen {
    position: fixed;
    inset: 0;
    height: 100vh;
    /* the visible height where the browser knows it: a phone's address bar */
    height: 100dvh;
    min-height: 0;
    z-index: 5000;
    border-radius: 0;
    border: 0;
}

/* --- Main layout container (sidebar + map) ---------------------------------
   min-height 0 lets it shrink to the root's height instead of growing with
   the fleet's list. */
.race-anim #main-container {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: row;
    overflow: hidden;
}

/* --- Left sidebar for boats and fleet telemetry -----------------------------
   224 px inside its 2 px border, 504 px with the telemetry columns. */
.race-anim #sidebar {
    position: relative;
    width: 226px;
    background: #0f3460;
    border-right: 2px solid #0f3460;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    font-size: 13px;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.race-anim #sidebar.expanded {
    width: 506px;
}

.race-anim #panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #1e3a5f;
    font-weight: bold;
    color: #b0c4de;
    background: #0f3460;
    flex-shrink: 0;
    gap: 6px;
}

.race-anim #panel-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.race-anim #panel-header-btns {
    display: flex;
    gap: 5px;
    align-items: center;
}

.race-anim #panel-header-btns button {
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 7px;
    font-size: 11px;
    cursor: pointer;
    line-height: 1.2;
    transition: 0.15s ease;
}

.race-anim #panel-header-btns button:hover {
    background: #e94560;
    border-color: #e94560;
    color: white;
}

/* the round button on the sidebar's edge that opens the telemetry columns;
   it stays at the narrow sidebar's edge, as it did */
.race-anim #sidebar-toggle-btn {
    position: absolute;
    left: 224px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: #000122;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.race-anim #sidebar-toggle-btn:hover {
    background: #1e3a5f;
    border-color: #60a5fa;
    transform: translate(-50%, -50%) scale(1.1);
}

.race-anim .fleet-header-row {
    display: none;
    align-items: center;
    padding: 6px 8px;
    background: #0a2544;
    border-bottom: 1px solid #1e3a5f;
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.race-anim #sidebar.expanded .fleet-header-row {
    display: flex;
}

.race-anim .fleet-header-row .unit {
    font-size: 8.5px;
    font-weight: normal;
    opacity: 0.7;
    margin-left: 2px;
    text-transform: none;
}

.race-anim #boat-list {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    flex: 1;
}

.race-anim .boat-row {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.race-anim .boat-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.race-anim .col-boat {
    width: 218px;
    min-width: 218px;
    max-width: 218px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    padding-right: 6px;
}

/* a boat's switch: the site's, a size smaller. Written out in full, so it
   looks the same whatever style.css says of checkboxes. */
.race-anim .boat-row input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
    background-color: #cbd5e1;
    border-radius: 18px;
    cursor: pointer;
    outline: none;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    margin: 0;
    flex-shrink: 0;
}

.race-anim .boat-row input[type=checkbox]::before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.race-anim .boat-row input[type=checkbox]:checked {
    background-color: #000122;
}

.race-anim .boat-row input[type=checkbox]:checked::before {
    transform: translateX(14px);
}

.race-anim .boat-row input[type=checkbox]:focus-visible {
    outline: 2px solid #000122;
    outline-offset: 2px;
}

.race-anim .cb-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.race-anim .boat-name-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    color: #e2e8f0;
}

.race-anim .col-tel {
    display: none;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 11.5px;
    font-weight: 500;
    color: #f1f5f9;
    flex-shrink: 0;
    padding: 0 4px;
    white-space: nowrap;
}

.race-anim #sidebar.expanded .col-tel {
    display: flex;
}

.race-anim .col-tws {
    width: 50px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.race-anim .col-twa {
    width: 62px;
}

.race-anim .col-sog {
    width: 50px;
}

.race-anim .col-cs {
    width: 48px;
}

.race-anim .col-cd {
    width: 48px;
}

.race-anim .fleet-header-row .col-tel {
    font-family: inherit;
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 700;
}

/* --- Map wrapper ------------------------------------------------------------
   min-width and min-height 0 let the map give way to the sidebar and the
   controls; the map itself fills the wrapper completely. */
.race-anim #map-wrapper {
    flex: 1;
    min-width: 0;
    min-height: 0;
    position: relative;
}

.race-anim #anim-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* --- Bottom controls -------------------------------------------------------- */
.race-anim #controls-wrapper {
    display: flex;
    flex-direction: column;
    background: whitesmoke;
    border-top: 2px solid #0f3460;
    flex-shrink: 0;
    z-index: 1000;
}

.race-anim #controls-options {
    display: flex;
    gap: 20px;
    padding: 10px 16px 0 16px;
    font-size: 13px;
    color: #0f3460;
    font-weight: bold;
    align-items: center;
    flex-wrap: wrap;
}

/* margin 0: style.css gives the labels of its own switch rows a right margin
   (.map-controls label), which must not come in wherever the root is mounted */
.race-anim #controls-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
}

/* what is being worked out or loaded, and what failed; the details of the weather
   and the rhumb line are the page's (options.onDetails) */
.race-anim #rhumb-status,
.race-anim #isochrones-status,
.race-anim #windfield-status,
.race-anim #currentfield-status {
    font-weight: normal;
    color: #475569;
}

.race-anim #rhumb-status.rhumb-error,
.race-anim #isochrones-status.rhumb-error,
.race-anim #windfield-status.rhumb-error,
.race-anim #currentfield-status.rhumb-error {
    color: #c0392b;
}

.race-anim #controls-options input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    background-color: #cbd5e1;
    border-radius: 20px;
    cursor: pointer;
    outline: none;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    margin: 0;
    flex-shrink: 0;
}

.race-anim #controls-options input[type=checkbox]::before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.race-anim #controls-options input[type=checkbox]:checked {
    background-color: #000122;
}

.race-anim #controls-options input[type=checkbox]:checked::before {
    transform: translateX(16px);
}

.race-anim #controls-options input[type=checkbox]:focus-visible {
    outline: 2px solid #000122;
    outline-offset: 2px;
}

/* the speed, on the left of Play (the user, 9 November 2026) */
.race-anim #speed-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    color: #0f3460;
    white-space: nowrap;
}

.race-anim #speed-slider {
    width: 80px;
    accent-color: #e94560;
    cursor: pointer;
}

.race-anim #speed-val {
    min-width: 24px;
    color: #e94560;
}

.race-anim #controls {
    min-height: 60px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.race-anim #time-display {
    font-size: 1.05em;
    font-weight: bold;
    color: #e94560;
    min-width: 190px;
    text-align: right;
}

.race-anim #slider {
    flex: 1;
    min-width: 100px;
    accent-color: #e94560;
}

.race-anim button.ctrl-btn {
    background: #0f3460;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    white-space: nowrap;
}

.race-anim button.ctrl-btn:hover {
    background: #e94560;
}

/* --- Leaflet's own elements, inside #anim-map ------------------------------- */

/* Route arrow icon */
.race-anim .route-arrow-icon {
    background: none !important;
    border: none !important;
}

/* A boat's marker: its shape, and its name beside it */
.race-anim .boat-icon {
    position: relative;
    overflow: visible;
}

.race-anim .boat-shape {
    position: absolute;
    left: -12px;
    top: -12px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

/* the one bubble the animation shows on demand: the boat's name, moving with
   its icon. Hidden until the root has .show-info-panels (the Bubbles switch). */
.race-anim .anim-boat-bubble {
    position: absolute;
    background: rgba(12, 18, 38, 0.85);
    opacity: 0.8;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    display: none;
}

.race-anim.show-info-panels .anim-boat-bubble {
    display: block;
}

.race-anim .anim-boat-bubble.pos-top-right {
    left: 10px;
    bottom: 6px;
}

.race-anim .anim-boat-bubble.pos-bottom-right {
    left: 10px;
    top: 6px;
}

.race-anim .anim-boat-bubble.pos-top-left {
    right: 10px;
    bottom: 6px;
}

.race-anim .anim-boat-bubble.pos-bottom-left {
    right: 10px;
    top: 6px;
}

.race-anim .anim-bubble-name {
    font-weight: bold;
    font-size: 11px;
}

/* Waypoint labels (Leaflet tooltips, their arrows taken off) */
.race-anim .wp-label {
    background: rgba(12, 18, 38, 0.88) !important;
    color: #f0e68c !important;
    border: 1px solid #f0e68c !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    padding: 2px 6px !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5) !important;
}

.race-anim .wp-label-start {
    color: #4ade80 !important;
    border-color: #4ade80 !important;
}

.race-anim .wp-label-finish {
    color: #e94560 !important;
    border-color: #e94560 !important;
}

.race-anim .wp-label::before,
.race-anim .wp-label::after {
    display: none !important;
}

/* --- Mobile responsiveness --------------------------------------------------
   The fleet goes under the map, a list of fixed height that scrolls; the map
   takes what is left of the root's height. */
@media (max-width: 768px) {
    .race-anim #main-container {
        flex-direction: column;
    }

    .race-anim #sidebar {
        width: 100%;
        /* 160 px of list under its 2 px border */
        height: 162px;
        border-right: none;
        border-top: 2px solid #0f3460;
        /* below the map */
        order: 2;
    }

    .race-anim #map-wrapper {
        order: 1;
    }

    .race-anim #controls-options {
        justify-content: center;
    }

    .race-anim #controls {
        /* the controls wrap when there is no room */
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 8px;
    }

    .race-anim #time-display {
        text-align: center;
        /* the time on a row of its own, at the top of the control bar */
        min-width: 100%;
        font-size: 0.95em;
        order: -1;
        margin-bottom: 4px;
    }
}

/* =========================================================================
   New with the move into the routing page (9 November 2026)
   ========================================================================= */

/* The full-screen toggle: a small square button at the map's top-left, in the
   look of Leaflet's own zoom buttons (which are at the top-right). It belongs
   in #map-wrapper, beside #anim-map. */
.race-anim .anim-fullscreen-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    /* the border is translucent: keep the white from showing through it */
    background-clip: padding-box;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    color: #333;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.race-anim .anim-fullscreen-btn:hover {
    background-color: #f4f4f4;
}

/* The wind-and-current bubble a click on the map opens. It is the content of
   a Leaflet divIcon, not the icon itself: Leaflet writes its own transform on
   the icon's element, so the icon is made with no size (iconSize [0, 0], a
   class name of its own) and this element inside it moves itself up, to sit
   above the clicked point with its arrow on it. */
.race-anim .anim-point-bubble {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 10px));
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #34495e;
    border-radius: 6px;
    padding: 6px 9px;
    font: 12px/1.35 sans-serif;
    color: #2c3e50;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* its small arrow, pointing down at the point */
.race-anim .anim-point-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #34495e;
    border-bottom: 0;
}

.race-anim .anim-point-bubble .anim-pb-row {
    display: flex;
    justify-content: space-between;
    gap: 1.2em;
}

.race-anim .anim-point-bubble .anim-pb-label {
    color: #7f8c8d;
}

.race-anim .anim-point-bubble .anim-pb-val {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.race-anim .anim-point-bubble .anim-pb-time {
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px solid #ecf0f1;
    color: #7f8c8d;
    font-size: 11px;
}

/* The dot on the clicked point: 8 px of fill inside a 2 px white ring, centred
   on the point (the content of a divIcon without a size, as the bubble). */
.race-anim .anim-point-dot {
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: content-box;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    background: #34495e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* A switch that cannot be used (a routing with no stored weather). The second
   rule is for the switch itself, whose own rule above says pointer. */
.race-anim #controls-options label.anim-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.race-anim #controls-options label.anim-disabled input {
    cursor: not-allowed;
}

/* The speed heat map's legend: a small box like mapping.js's wind legend
   (Mapping.windLegendElement), which the caller places on the map. */
.race-anim .anim-heat-legend {
    width: 160px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    font: 11px sans-serif;
    color: #333;
    pointer-events: none;
}

/* The bubble on a point of a track (animation.js's bindTrackBubble): a Leaflet
   tooltip of the class anim-track-tip, whose content is written with the
   Tracks Map's own class names (bubble-name, bubble-row, bubble-label,
   bubble-val, boat-dot). style.css colours those for a dark bubble (#e6edf3),
   and Leaflet's tooltip is white: without these rules the figures are white on
   white. So the tooltip takes the look of the Tracks Map's bubble (style.css's
   .boat-bubble), and its content is written out here as well, so that it does
   not depend on style.css. */
.race-anim .anim-track-tip {
    padding: 5px 9px;
    background: rgba(12, 18, 38, 0.93);
    border: 0;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.65;
    color: #e6edf3;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

/* Leaflet's arrow on the side the tooltip opens to, in the bubble's colour */
.race-anim .anim-track-tip.leaflet-tooltip-top::before {
    border-top-color: rgba(12, 18, 38, 0.93);
}

.race-anim .anim-track-tip.leaflet-tooltip-bottom::before {
    border-bottom-color: rgba(12, 18, 38, 0.93);
}

.race-anim .anim-track-tip.leaflet-tooltip-left::before {
    border-left-color: rgba(12, 18, 38, 0.93);
}

.race-anim .anim-track-tip.leaflet-tooltip-right::before {
    border-right-color: rgba(12, 18, 38, 0.93);
}

.race-anim .anim-track-tip .bubble-name {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
    color: #e6edf3;
}

.race-anim .anim-track-tip .bubble-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.race-anim .anim-track-tip .bubble-label {
    color: #8ba4c8;
}

.race-anim .anim-track-tip .bubble-val {
    font-weight: bold;
    color: #e6edf3;
}

.race-anim .anim-track-tip .boat-dot {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 1ch;
    border-radius: 50%;
    flex-shrink: 0;
}

/* =========================================================================
   After the review of 9 November 2026
   ========================================================================= */

/* The bubble near the map's edges, where sitting above its point and centred
   on it would cut it off: under the point near the top, to one side of it
   near a side edge (animation.js sets the classes from where the point is on
   the screen, and again when the map moves). */
.race-anim .anim-point-bubble.pb-below {
    transform: translate(-50%, 10px);
}

.race-anim .anim-point-bubble.pb-below::after {
    top: auto;
    bottom: 100%;
    border: 6px solid transparent;
    border-bottom-color: #34495e;
    border-top: 0;
}

.race-anim .anim-point-bubble.pb-left {
    transform: translate(-18px, calc(-100% - 10px));
}

.race-anim .anim-point-bubble.pb-left.pb-below {
    transform: translate(-18px, 10px);
}

.race-anim .anim-point-bubble.pb-left::after {
    left: 18px;
}

.race-anim .anim-point-bubble.pb-right {
    transform: translate(calc(-100% + 18px), calc(-100% - 10px));
}

.race-anim .anim-point-bubble.pb-right.pb-below {
    transform: translate(calc(-100% + 18px), 10px);
}

.race-anim .anim-point-bubble.pb-right::after {
    left: auto;
    right: 18px;
    transform: translateX(50%);
}

/* A boat's place on the rhumb line at the time shown (the projections): a
   ring in the boat's colour, the content of a divIcon without a size. */
.race-anim .anim-proj-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    height: 15px;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 3px solid #34495e;
    border-radius: 50%;
    cursor: default;
}

/* On a phone the root no longer has a height of its own: the map gets a fixed
   share of the screen and the fleet list and the switches take what they
   need under it. (With the root at 78vh the list and the wrapped switches
   left the map a strip a few dozen pixels high.) Full screen fills the
   window again, the map taking what the rest leaves. */
@media (max-width: 768px) {
    .race-anim {
        height: auto;
        min-height: 0;
    }

    .race-anim #main-container {
        flex: none;
    }

    .race-anim #map-wrapper {
        flex: none;
        height: 60vh;
        min-height: 320px;
    }

    .race-anim.anim-fullscreen #main-container {
        flex: 1;
        min-height: 0;
    }

    .race-anim.anim-fullscreen #map-wrapper {
        flex: 1;
        height: auto;
        min-height: 0;
    }
}
