/* Part 113: the ride screen, your way. Body carries data-speed-size and hud-no-<part> classes (hud50.js). */
body.playing:is([data-sport=ski],[data-sport=snowboard])[data-speed-size=large] #hud #speed{font-size:46px;line-height:.95}
body.playing:is([data-sport=ski],[data-sport=snowboard])[data-speed-size=large] #hud .velocity-read span{font-size:13px}
body.playing:is([data-sport=ski],[data-sport=snowboard])[data-speed-size=large] #hud .velocity-read{padding:6px 12px 7px}
body.playing:is([data-sport=ski],[data-sport=snowboard])[data-speed-size=huge] #hud #speed{font-size:76px;line-height:.9}
body.playing:is([data-sport=ski],[data-sport=snowboard])[data-speed-size=huge] #hud .velocity-read span{font-size:17px}
body.playing:is([data-sport=ski],[data-sport=snowboard])[data-speed-size=huge] #hud .velocity-read{padding:8px 16px 10px}
body.playing:is([data-sport=ski],[data-sport=snowboard]) #hud #speed{min-width:2ch;text-align:right}

/* The speed bar comes back under a large or huge readout, lit in steps to 140 km/h. */
body.playing:is([data-sport=ski],[data-sport=snowboard]):is([data-speed-size=large],[data-speed-size=huge]) #hud .velocity{display:flex;flex-direction:column;gap:5px}
body.playing:is([data-sport=ski],[data-sport=snowboard]):is([data-speed-size=large],[data-speed-size=huge]) #hud #speedBar{display:flex;height:6px;padding:0;gap:2px;width:100%}
#hud #speedBar i{flex:1;border-radius:1px;background:rgba(255,255,255,.18)}
#hud #speedBar i.on{background:#7fd3ff}
#hud #speedBar i.on:nth-child(n+13){background:#ffc85a}
#hud #speedBar i.on:nth-child(n+16){background:#ff7a59}

/* Ride data under the speed. */
.ride-data{display:flex;gap:4px;margin-top:2px}
.ride-data span{display:flex;flex-direction:column;gap:1px;padding:3px 8px 4px;border-radius:3px;background:rgba(18,32,42,.78);color:#fff;font:700 13px/1.05 var(--display,system-ui);font-variant-numeric:tabular-nums;white-space:nowrap}
.ride-data small{font:700 9px/1 var(--body,system-ui);letter-spacing:.08em;color:#bcd0d9}
body:not(.playing) .ride-data,body.hud-no-data .ride-data{display:none}

/* Parts a rider turned off. */
body.playing.hud-no-score #hud :is(.score-panel,#runMeter){display:none!important}
body.playing.hud-no-course #courseMeter{display:none!important}
body.playing.hud-no-line #hud .line-meter{display:none!important}
body.playing.hud-no-hints #hud :is(.control-strip,#status){display:none!important}

/* A phone held upright keeps the large readout a little smaller. */
@media (max-width:560px){
  body.playing:is([data-sport=ski],[data-sport=snowboard])[data-speed-size=large] #hud #speed{font-size:36px}
  body.playing:is([data-sport=ski],[data-sport=snowboard])[data-speed-size=huge] #hud #speed{font-size:54px}
  .ride-data span{font-size:11px;padding:2px 6px 3px}
}
