/* River — « Parcourir la main » (hand-scrubber.js), accueil et connexion.
   Même grammaire que la jauge du compteur de BB : piste creusée de 8 px, remplissage net, graduations lisibles. */
@property --to { syntax:'<number>'; inherits:false; initial-value:0; }
.hs { --hs-accent:#e74953; --hs-ivory:#f6efec; --hs-muted:#c6babc; --pos:0; display:flex; align-items:center; gap:8px; width:100%; max-width:560px; margin-inline:auto; padding:6px; border:1px solid #ffffff14; border-radius:999px; background:rgb(18 8 11 / .66); -webkit-backdrop-filter:blur(12px) saturate(140%); backdrop-filter:blur(12px) saturate(140%); box-shadow:inset 0 1px 0 #ffffff0d, 0 14px 30px -18px #000; user-select:none; -webkit-user-select:none; }
.hs-btn { flex:none; display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:#ffffff0f; color:var(--hs-ivory); cursor:pointer; transition:background-color .2s, scale .15s cubic-bezier(.2,0,0,1); }
.hs-btn svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hs-btn:disabled { opacity:.35; cursor:default; }
@media (hover:hover) { .hs-btn:not(:disabled):hover { background:#ffffff1f; } }
.hs-btn:not(:disabled):active { scale:.92; }
.hs-play { background:var(--hs-accent); }
@media (hover:hover) { .hs-play:hover { background:#f05a64 !important; } }
.hs-play .hs-i-play { fill:currentColor; stroke:none; }
.hs-play .hs-i-pause { display:none; }
.hs.is-playing .hs-play .hs-i-play { display:none; }
.hs.is-playing .hs-play .hs-i-pause { display:inline; }
.hs-track { position:relative; flex:1; min-width:0; height:40px; margin:0 10px; touch-action:none; cursor:pointer; outline:none; }
.hs-rail { position:absolute; left:0; right:0; top:12px; height:8px; border-radius:99px; background:#0009; box-shadow:inset 0 1px 3px #000c; overflow:hidden; }
.hs-fill { position:absolute; inset:0 auto 0 0; width:calc(var(--pos) * 100%); border-radius:inherit; background:linear-gradient(90deg,#b8202f,var(--hs-accent)); transition:width .45s cubic-bezier(.16,1,.3,1); }
.hs-timer { position:absolute; top:0; bottom:0; left:calc(var(--from,0) * 100%); width:calc((var(--to,0) - var(--from,0)) * 100%); background:repeating-linear-gradient(90deg,#ffffff38 0 3px,transparent 3px 6px); border-radius:99px; }
.hs.is-dragging .hs-fill, .hs.is-dragging .hs-thumb { transition:none; }
.hs-stops { position:absolute; inset:0; }
.hs-stop { position:absolute; top:0; left:calc(var(--at) * 100%); translate:-50% 0; display:grid; justify-items:center; gap:7px; padding:9px 2px 0; border:0; background:none; color:var(--hs-muted); font:600 12px/1 var(--font-display, system-ui); white-space:nowrap; cursor:pointer; }
.hs-stop:first-child { translate:-6px 0; justify-items:start; } .hs-stop:last-child { translate:calc(-100% + 6px) 0; justify-items:end; }
.hs-stop i { width:6px; height:14px; border-radius:99px; background:#ffffff2e; transition:background-color .3s, scale .3s; }
.hs-stop.is-past i { background:#ffffff8c; }
.hs-stop.is-on { color:var(--hs-ivory); }
.hs-stop.is-on i { background:var(--hs-ivory); scale:1 1.15; }
@media (hover:hover) { .hs-stop:hover { color:var(--hs-ivory); } }
.hs-thumb { position:absolute; top:7px; left:calc(var(--pos) * 100%); width:18px; height:18px; margin-left:-9px; border-radius:50%; background:var(--hs-ivory); box-shadow:0 0 0 4px rgb(231 73 83 / .35), 0 4px 10px -2px #000; transition:left .45s cubic-bezier(.16,1,.3,1), box-shadow .2s; pointer-events:none; }
.hs-track:focus-visible .hs-thumb { box-shadow:0 0 0 4px #f6efec66, 0 0 0 7px var(--hs-accent); }
.hs.is-dragging .hs-thumb { box-shadow:0 0 0 7px rgb(231 73 83 / .3), 0 6px 14px -2px #000; }
/* Version compacte (connexion sur téléphone) : crans sans libellés, boutons plus petits */
.hs--compact { gap:6px; padding:4px; max-width:360px; }
.hs--compact .hs-btn { width:32px; height:32px; }
.hs--compact .hs-track { height:32px; margin:0 6px; }
.hs--compact .hs-rail { top:12px; }
.hs--compact .hs-stop span { display:none; }
.hs--compact .hs-stop { padding-top:7px; }
.hs--compact .hs-thumb { top:7px; }

/* Inspecteur : une bulle en verre au-dessus de la carte */
.hs-tip { position:fixed; z-index:200; max-width:260px; padding:10px 12px; border:1px solid #ffffff1c; border-radius:12px; background:rgb(20 9 13 / .84); -webkit-backdrop-filter:blur(14px) saturate(150%); backdrop-filter:blur(14px) saturate(150%); color:#f6efec; font:500 13px/1.45 var(--font-display, system-ui); box-shadow:0 18px 34px -16px #000; opacity:0; translate:0 6px; transition:opacity .18s ease-out, translate .3s cubic-bezier(.16,1,.3,1); pointer-events:none; }
.hs-tip.is-on { opacity:1; translate:0 0; }
.hs-tip b { display:block; margin-bottom:3px; font-weight:650; }
.hs-tip em { font-style:normal; color:#7be3a8; font-variant-numeric:tabular-nums; }
.hs-tip em.is-down { color:#ff9f8a; }
.hs-tip::after { content:''; position:absolute; left:var(--arrow,50%); bottom:-6px; width:10px; height:10px; margin-left:-5px; background:inherit; border-right:1px solid #ffffff1c; border-bottom:1px solid #ffffff1c; rotate:45deg; }
.hs-tip.is-below::after { bottom:auto; top:-6px; rotate:225deg; }
[data-inspect] { cursor:help; }
@media (prefers-reduced-motion:reduce) { .hs-fill, .hs-thumb, .hs-stop i, .hs-tip { transition:none; } }
