:root {
  --bg: #f4f5f6;
  --panel: #ffffff;
  --ink: #1a2226;
  --muted: #6b7679;
  --hair: rgba(20, 30, 34, 0.10);
  --race: #0a67b2;        /* bleu Pocari */
  --trace: #0a67b2;
  --chal: #f5821f;        /* orange challenge */
  --start: #17a35a;
  --finish: #1a2226;
  --shadow: 0 2px 12px rgba(20, 30, 34, 0.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171a; --panel: #1a2226; --ink: #e9edee; --muted: #8b9699;
    --hair: rgba(233, 237, 238, 0.12); --race: #4aa3e6; --trace: #4aa3e6;
    --chal: #ff9a3d; --start: #37c37f; --finish: #e9edee;
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="light"] {
  --bg: #f4f5f6; --panel: #ffffff; --ink: #1a2226; --muted: #6b7679;
  --hair: rgba(20, 30, 34, 0.10); --race: #0a67b2; --trace: #0a67b2;
  --chal: #f5821f; --start: #17a35a; --finish: #1a2226;
  --shadow: 0 2px 12px rgba(20, 30, 34, 0.10);
}
:root[data-theme="dark"] {
  --bg: #11171a; --panel: #1a2226; --ink: #e9edee; --muted: #8b9699;
  --hair: rgba(233, 237, 238, 0.12); --race: #4aa3e6; --trace: #4aa3e6;
  --chal: #ff9a3d; --start: #37c37f; --finish: #e9edee;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
#app { position: fixed; inset: 0; }

/* ---- Left dock (titre + filtres) ---- */
#dock-left {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(92vw, 460px);
}

/* ---- Top bar (2 lignes max : titre+switch, puis stats) ---- */
#topbar {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 16px; border-radius: 14px;
  background: var(--panel); box-shadow: var(--shadow);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---- Course switch (Full / Half) ---- */
.course-switch { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg); width: fit-content; }
.course-switch a {
  text-decoration: none; font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 4px 12px; border-radius: 6px;
}
.course-switch a.on { background: var(--trace); color: #fff; }
.course-switch a.disabled { opacity: 0.35; pointer-events: none; cursor: not-allowed; }

/* ---- Boutons toggle / collapse ---- */
.toggle-btn {
  border: 1px solid var(--hair); background: transparent; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 700; color: var(--muted);
  padding: 3px 11px; border-radius: 20px; min-width: 40px;
}
.toggle-btn[aria-pressed="true"] { background: var(--trace); border-color: var(--trace); color: #fff; }
.collapse-btn {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted);
  padding: 0; display: inline-flex; align-items: center; gap: 5px;
}
.collapse-btn::before { content: "▾"; font-size: 11px; transition: transform .15s; }
#runners.collapsed .collapse-btn::before { transform: rotate(-90deg); }
#runners.collapsed #runner-body { display: none; }
#runners.collapsed .add-btn { display: none; }

/* ---- Filtres stations ---- */
#filters {
  padding: 11px 14px 13px; border-radius: 14px;
  background: var(--panel); box-shadow: var(--shadow);
}
.filters-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px;
}
.filters-title {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
#filters-all {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 600; color: var(--trace);
  padding: 2px 4px; border-radius: 6px;
}
#filters-all:focus-visible { outline: 2px solid var(--trace); outline-offset: 2px; }
#filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--hair); background: transparent; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink);
  padding: 4px 9px; border-radius: 20px; line-height: 1.1;
  transition: opacity .12s, background .12s;
}
.filter-chip i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.filter-chip[aria-pressed="false"] { opacity: 0.4; }
.filter-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--trace) 8%, transparent); border-color: color-mix(in srgb, var(--trace) 30%, transparent); }
.filter-chip:focus-visible { outline: 2px solid var(--trace); outline-offset: 2px; }
.title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -0.02em; }
.race { font-size: 11px; color: var(--muted); font-weight: 600; }
.stats { display: flex; gap: 18px; margin: 0; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; gap: 0; }
.stats dt {
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.stats dd {
  margin: 0; font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.stats .chal dd { color: var(--chal); }

/* ---- Map ---- */
#map { position: absolute; inset: 0; }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* ---- Elevation profile (même largeur que la légende, pas toute la largeur de l'écran) ---- */
#elevation {
  position: absolute; left: 14px; width: min(92vw, 420px); bottom: 44px; z-index: 5;
  height: 82px; padding: 8px 12px 4px;
  border-radius: 14px; background: var(--panel); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
#elevation[hidden] { display: none; }
.elev-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.elev-title {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.elev-read {
  font-size: 12px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; min-height: 16px;
}
#profile { flex: 1; width: 100%; display: block; }

/* ---- Replay bar (tout en haut, à gauche des contrôles de zoom) ---- */
#replay {
  position: absolute; right: 62px; top: 14px; z-index: 7;
  display: flex; align-items: center; gap: 9px; width: min(90vw, 360px);
  padding: 7px 12px; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow);
}
#replay[hidden] { display: none; }
#rp-play {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--trace); color: #fff; font-size: 13px; line-height: 32px;
}
#rp-play:focus-visible { outline: 2px solid var(--trace); outline-offset: 2px; }
#rp-slider { flex: 1; accent-color: var(--trace); }
#rp-clock { flex: none; font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
#rp-speed {
  flex: none; border: 1px solid var(--hair); background: transparent; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 700; color: var(--muted);
  padding: 4px 9px; border-radius: 20px; min-width: 32px;
}
#rp-speed:hover { color: var(--ink); }
#rp-speed:focus-visible { outline: 2px solid var(--trace); outline-offset: 2px; }

/* marqueurs animés du replay
   PAS de "position:relative" ici : MapLibre applique sa classe .maplibregl-marker
   (position:absolute) DIRECTEMENT sur cet élément (pas de wrapper séparé) — une règle
   à nous avec la même spécificité écraserait son absolute et ferait s'empiler les pions
   en flux normal (bug observé : chaque coureur ajouté décalé de la hauteur d'un pion).
   Son position:absolute sert déjà de repère pour l'étiquette .rp-lab ci-dessous. */
.rp-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--c);
  border: 2.5px solid var(--panel); box-shadow: 0 0 0 2px var(--c), 0 1px 5px rgba(0,0,0,.4);
}
.rp-dot.done { opacity: 0.45; }
.rp-lab {
  position: absolute; left: 50%; top: -7px; transform: translate(-50%, -100%);
  font-size: 11px; font-weight: 700; white-space: nowrap; color: #fff; background: var(--c);
  padding: 1px 6px; border-radius: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

/* ---- Legend ---- */
#legend {
  position: absolute; left: 14px; bottom: 12px; z-index: 5;
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  padding: 7px 12px; border-radius: 10px;
  background: var(--panel); box-shadow: var(--shadow);
  font-size: 12px; color: var(--muted); font-weight: 600;
}
#legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-btn {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 12px; font-weight: 600; color: var(--muted); padding: 0;
}
.legend-btn[aria-pressed="true"] { color: var(--trace); }
.legend-btn:focus-visible { outline: 2px solid var(--trace); outline-offset: 2px; }
.dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }
.dot.start { background: var(--start); }
.dot.finish { background: var(--finish); }
.swatch { width: 16px; height: 4px; border-radius: 2px; }
.swatch.trace { background: var(--trace); }
.swatch.chal { background: var(--chal); }

/* ---- Classement live de la zone challenge (bas droite) ---- */
#challenge-board {
  position: absolute; right: 14px; bottom: 12px; z-index: 6;
  width: 220px; padding: 8px 10px 10px;
  border-radius: 14px; background: var(--panel); box-shadow: var(--shadow);
}
#challenge-board[hidden] { display: none; }
.cb-head {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--chal); font-weight: 700; margin-bottom: 6px;
}
.cb-body { position: relative; }
.cb-row {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 7px; height: 26px;
  transition: top .45s cubic-bezier(.2,.8,.2,1);
}
.cb-row.new { animation: cb-pop .35s ease; }
@keyframes cb-pop { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.cb-rank { flex: none; width: 15px; font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cb-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cb-name { flex: 1; font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-time { flex: none; font-size: 12px; font-weight: 700; color: var(--chal); font-variant-numeric: tabular-nums; }

/* ---- Map markers ---- */
.mk {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.mk.start { background: var(--start); }
.mk.finish { background: var(--finish); }
.mk-km {
  font-size: 11px; font-weight: 700; color: var(--ink);
  background: var(--panel); padding: 1px 6px; border-radius: 20px;
  box-shadow: var(--shadow); white-space: nowrap;
  transform: translateY(-14px);
}
/* hover crosshair on map */
.mk-cursor {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--chal); border: 2.5px solid var(--panel);
  box-shadow: 0 0 0 3px rgba(245,130,31,.25);
}

/* ---- Runners panel ---- */
#runners {
  padding: 11px 14px 12px; border-radius: 14px;
  background: var(--panel); box-shadow: var(--shadow);
}
.add-btn {
  border: 0; background: var(--trace); color: #fff; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 650; padding: 5px 10px; border-radius: 8px;
}
.add-btn:focus-visible { outline: 2px solid var(--trace); outline-offset: 2px; }
#runner-list { display: flex; flex-direction: column; gap: 4px; margin-top: 9px; max-height: 34vh; overflow-y: auto; }
.runners-empty { font-size: 12px; color: var(--muted); line-height: 1.4; }
.runner-row {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  font: inherit; text-align: left; padding: 5px 7px; border-radius: 8px; color: var(--ink);
}
.runner-row:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.runner-row.on { border-color: var(--hair); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.r-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--hair); box-shadow: 0 0 0 1.5px var(--panel); }
.r-name { flex: 1; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-km { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.r-pace { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.r-rank { font-size: 11px; font-weight: 700; color: var(--trace); }
.r-del {
  flex: none; width: 18px; height: 18px; line-height: 17px; text-align: center;
  border-radius: 50%; font-size: 14px; font-weight: 700; color: var(--muted);
}
.r-del:hover { background: color-mix(in srgb, #e23b3b 16%, transparent); color: #e23b3b; }

/* ---- Affichage noms coureurs sur la carte (bouton toggle, on garde le point) ---- */
html.hide-names .rp-lab { display: none; }

/* ---- Modal ---- */
#runner-modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; }
#runner-modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 20, 0.45); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; width: min(92vw, 400px); max-height: 90vh; overflow-y: auto;
  background: var(--panel); color: var(--ink); border-radius: 16px; box-shadow: 0 12px 48px rgba(0,0,0,.32);
  padding: 20px 22px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h2 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -0.01em; }
.modal-x { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
#runner-form { display: flex; flex-direction: column; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field span { font-size: 12px; font-weight: 650; }
.field span em { color: var(--chal); font-style: normal; }
.field span small { color: var(--muted); font-weight: 500; }
.field input {
  font: inherit; font-size: 14px; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--hair); background: var(--bg); color: var(--ink);
}
.field input:focus-visible { outline: 2px solid var(--trace); outline-offset: 1px; border-color: var(--trace); }
/* ---- Recherche coureur (résultats officiels) ---- */
.rm-results {
  display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto;
  border: 1px solid var(--hair); border-radius: 9px; padding: 4px;
}
.rm-res-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  border: 0; background: transparent; cursor: pointer; text-align: left;
  font: inherit; padding: 6px 8px; border-radius: 7px; color: var(--ink);
}
.rm-res-row:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.rm-res-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-res-meta { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.rm-res-empty { font-size: 12.5px; color: var(--muted); padding: 8px; }
.rm-privacy { font-size: 11px; color: var(--muted); line-height: 1.45; margin: 0; }

/* ---- Puces de référence (fastest / avg male / avg female) — calculées, jamais publiées ---- */
.ref-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ref-chips:empty { display: none; }
.ref-chip {
  --gc: var(--ink); /* teinte par genre : bleu hommes / vert-aqua femmes (mêmes couleurs que la page stats) */
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid color-mix(in srgb, var(--gc) 35%, transparent);
  background: color-mix(in srgb, var(--gc) 8%, transparent); cursor: pointer;
  font: inherit; font-size: 11.5px; font-weight: 650;
  color: color-mix(in srgb, var(--gc) 80%, var(--ink));
  padding: 5px 10px; border-radius: 20px;
}
.ref-chip.gm { --gc: #2a78d6; }
.ref-chip.gf { --gc: #1baf7a; }
.ref-chip-t { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.ref-chip.on { background: color-mix(in srgb, var(--gc) 18%, transparent); border-color: var(--gc); }
.ref-chip.on .ref-chip-t { color: color-mix(in srgb, var(--gc) 80%, var(--ink)); }
.ref-chip:hover { border-color: var(--gc); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.btn-ghost { border: 1px solid var(--hair); background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.btn-primary { border: 0; background: var(--trace); color: #fff; font: inherit; font-weight: 650; font-size: 13px; padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Stations (POI) ---- */
.poi {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--trace); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  border: 2px solid var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.35);
  cursor: pointer; font-variant-numeric: tabular-nums;
}
.poi.poi-med { background: var(--panel); color: #e23b3b; box-shadow: 0 1px 4px rgba(0,0,0,.35), inset 0 0 0 2px #e23b3b; }
.poi:hover { transform: scale(1.15); }

.maplibregl-popup-content { border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); background: var(--panel); color: var(--ink); }
.maplibregl-popup-tip { border-top-color: var(--panel); border-bottom-color: var(--panel); }
.poi-pop strong { font-size: 13px; }
.poi-list { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.poi-svc { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); }
.poi-svc i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.poi-flag { margin-top: 7px; font-size: 10px; color: var(--chal); font-weight: 600; }

@media (max-width: 640px) {
  #topbar { top: 10px; left: 10px; right: 10px; max-width: none; padding: 12px 14px; }
  .stats { gap: 16px; }
  #elevation { height: 110px; left: 10px; right: 10px; bottom: 40px; }
  #legend { display: none; }
}

/* ---------- loading screen ---------- */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.45s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
.ld-box { width: min(320px, 82vw); text-align: center; }
.ld-title { font-weight: 700; color: var(--ink, #222); margin-bottom: 16px; }
.ld-bar {
  height: 8px; border-radius: 4px; overflow: hidden;
  background: color-mix(in srgb, var(--trace) 18%, var(--bg));
}
#ld-fill {
  height: 100%; width: 3%; border-radius: 4px;
  background: var(--trace); transition: width 0.35s ease;
}
#ld-msg { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---- Stats link (à gauche de la barre replay) ---- */
#stats-link {
  position: absolute; top: 14px; right: calc(62px + min(90vw, 360px) + 10px); z-index: 7;
  display: flex; align-items: center; height: 46px; padding: 0 14px;
  border-radius: 12px; background: var(--trace); color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow); white-space: nowrap;
}
#stats-link:hover { filter: brightness(1.12); }
@media (max-width: 640px) {
  /* petit écran : la barre replay prend toute la largeur, le lien passe en dessous d'elle */
  #stats-link { top: 72px; right: 10px; height: 38px; }
}

/* ---------- version mobile (≤768px) : carte plein écran, menus dans ☰, runners + play en bas ---------- */
#menu-btn {
  display: none; border: 0; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--ink); padding: 4px 8px;
}
#mob-menu[hidden] { display: none; }

@media (max-width: 768px) {
  #menu-btn { display: block; }
  #dock-left { top: 8px; left: 8px; right: 8px; max-width: none; }
  #topbar { padding: 8px 12px; }
  .topbar-row { flex-wrap: nowrap; }
  .race { display: none; }

  /* menu déroulant sous le topbar */
  #mob-menu {
    position: absolute; top: 56px; left: 8px; right: 8px; z-index: 30;
    background: var(--panel); border-radius: 14px; box-shadow: var(--shadow);
    padding: 16px 14px;
  }
  #mm-slots { display: flex; flex-direction: column; gap: 16px; }
  #mm-slots .stats { gap: 14px; }
  #mm-slots #filters { padding: 0; box-shadow: none; border-radius: 0; background: transparent; }
  #mm-slots #filters .filters-head { margin-bottom: 0; }
  #mm-slots #elev-toggle { text-align: left; font-size: 13px; }
  #mm-slots #stats-link { position: static; height: 42px; justify-content: center; }

  /* runners = tiroir bas, replié par défaut, au-dessus de la barre play */
  #runners {
    position: fixed; left: 0; right: 0; bottom: 60px; z-index: 15;
    border-radius: 16px 16px 0 0; padding: 10px 14px 12px;
    box-shadow: 0 -4px 18px rgba(20, 30, 34, 0.18);
  }
  #runner-list { max-height: 36vh; }

  /* barre play en bas pleine largeur (au pouce) */
  #replay {
    top: auto; bottom: 8px; left: 8px; right: 8px; width: auto; z-index: 16;
  }
  #rp-clock { min-width: 74px; font-size: 11px; }

  /* profil altimétrique au-dessus du dock bas */
  #elevation { left: 8px; right: 8px; width: auto; bottom: 116px; height: 100px; }

  /* classement challenge compact, haut droite sous le topbar */
  #challenge-board { top: 62px; bottom: auto; right: 8px; width: 190px; max-height: 140px; overflow: hidden; }

  #legend { display: none; }
}
