/* Riding feedback is small and short-lived; goals stay inside the existing HUD. */
.r33-beat{display:block;flex-basis:100%;color:#f5d28a;font-size:11px;font-weight:650;letter-spacing:.025em;line-height:1.45;max-width:340px;pointer-events:none}
.r33-beat[hidden]{display:none}
.r40-moment{display:block;flex-basis:100%;color:#cad4c4;font-size:10px;line-height:1.35;max-width:340px;pointer-events:none}
.r40-moment[hidden]{display:none}
.r33-run-stats{display:flex;gap:8px 18px;flex-wrap:wrap;margin:9px 0 4px;color:#d3e0d5;font-size:12px}
.r33-run-stats b{color:#f3ce7c;font-size:15px;font-variant-numeric:tabular-nums}
.r33-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.r33-result-actions button{min-height:44px;flex:1 1 135px;padding:10px 13px;border:1px solid #8b956b80;border-radius:9px;background:#1c302be6;color:#f1e8ce;font:inherit;font-size:12px;font-weight:600;line-height:1.35}
.r33-result-actions button:focus-visible{outline:3px solid #f2ce7a;outline-offset:3px}
.r33-challenge-entry{display:block;width:100%;padding:12px 15px;border:1px solid #d3ae67;border-radius:10px;color:#ffe0a1;background:#21382d;text-align:left;line-height:1.5;margin:10px 0;font:inherit}
.r33-challenge-entry[hidden]{display:none}
.r33-share-link{display:block;width:100%;box-sizing:border-box;min-height:52px;padding:10px 12px;background:#0e201b;color:#e1e9df;border:1px solid #81967b;border-radius:6px;font:13px/1.4 monospace;user-select:text;-webkit-user-select:text;overflow-wrap:anywhere}
.r33-challenge-note{color:#e8c57e;font-size:13px;line-height:1.45;margin:8px 0}
.r33-share-note{color:#bdcdbf;font-size:12px;line-height:1.5}
@media(max-height:500px){.r33-beat{font-size:10px;max-width:400px}.r33-run-stats{gap:6px 14px;margin-top:4px}.r33-result-actions{margin-top:7px}}
@media(prefers-reduced-motion:reduce){.r33-beat,.r33-result-actions{transition:none;animation:none}}

/* Fault details are confined to the error screen, never the riding HUD. */
#error-detail-r34{max-width:min(650px,100%);margin:0 0 22px;color:var(--muted)}
#error-record-r34{max-height:28vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.45 monospace}

/* R35: the useful part of a riding instruction must not end in an ellipsis.
   Keep speed/distance on their own line; let the instruction wrap below. */
.hud .telemetry{flex-wrap:wrap;row-gap:5px}
.hud .ride-feedback,.hud .ride-feedback.guided-feedback-r28{
 flex:1 0 100%;order:4;display:block;max-width:100%;max-height:none;
 margin:0;text-align:left;white-space:normal;overflow:visible;text-overflow:clip;
 -webkit-line-clamp:unset;line-height:1.4;text-wrap:pretty
}
.hud .ride-feedback[hidden]{display:none}
.hud .telemetry:has(.ride-feedback:not([hidden])) .ride-info{display:flex}
.hud .telemetry:has(.ride-feedback:not([hidden])) #speed{display:block}
.hud .flood-status-r32{order:5}
@media(max-height:500px){
 .hud .ride-feedback,.hud .ride-feedback.guided-feedback-r28{font-size:11px;max-width:min(460px,100%)}
}
