/* Slope 26: GATE RACE (part 75, gates50.js and gateview50.js). The readout during a race and the count on the result. */
.gate-hud{position:absolute;top:96px;left:50%;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:10px;padding:6px 14px 6px 7px;border-radius:999px;background:#07121cd9;border:1px solid #ffffff26;color:#fff;font:800 12px/1 var(--body);letter-spacing:.1em;white-space:nowrap;pointer-events:none;box-shadow:0 8px 22px -12px #000}
.gate-hud.hidden{display:none}
.gate-hud-side{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:12px;line-height:1;color:#fff;background:#e7262f;transition:background .12s}
.gate-hud-side[data-color=blue]{background:#1c5fe6}
.gate-hud-side[data-color=done]{background:#23a565}
.gate-hud-count{font:900 italic 18px/1 var(--display);letter-spacing:.06em}
.gate-hud-count i{font-style:inherit}
.gate-hud-word{font-style:normal;font-weight:900;font-size:13px;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.gate-hud-word:empty{display:none}
.gate-hud-word[data-tone=good]{color:#63e6a0}
.gate-hud-word[data-tone=slow]{color:#ffc65a}
.gate-hud-word[data-tone=bad]{color:#ff7a7a}
.gate-hud[data-tone=bad]{border-color:#ff7a7a;animation:gate-miss .45s cubic-bezier(.3,1.6,.5,1)}
.gate-hud[data-tone=good]{border-color:#63e6a066}
@keyframes gate-miss{0%{transform:translateX(-50%) scale(1.14)}100%{transform:translateX(-50%) scale(1)}}
body.reduced-motion .gate-hud[data-tone=bad]{animation:none}
@media(prefers-reduced-motion:reduce){.gate-hud[data-tone=bad]{animation:none}}
@media(max-height:480px){.gate-hud{top:88px;padding:4px 11px 4px 5px;gap:8px}.gate-hud-side{width:24px;height:24px}.gate-hud-count{font-size:15px}.gate-hud-word{font-size:12px}}
@media(max-width:580px){.gate-hud{top:108px}}

/* On the result: how many doors were clean. */
.result-gates{display:flex;align-items:center;gap:12px;margin:10px 0 2px;padding:10px 14px;border-radius:14px;background:#23a56524;border:1px solid #63e6a055}
.result-gates b{font:900 italic 26px/1 var(--display);letter-spacing:.04em;color:#63e6a0;white-space:nowrap}
.result-gates span{font:800 11px/1.3 var(--body);letter-spacing:.1em;color:#d5e3ec}
.result-gates.has-missed{background:#ff7a7a1c;border-color:#ff7a7a55}
.result-gates.has-missed b{color:#ffb0a8}

/* Part 76. While a race is on, the big number of the ride view is the clock: digits of one width, so it does not shake. */
body.gate-race #hud #score{font-variant-numeric:tabular-nums;letter-spacing:0}
/* A race is steered, tucked and hopped. The trick buttons leave the picture to the gates (POP stays). */
body.gate-race .ride-touch-trick{display:none}

/* On the result: the race in three sectors, each against your best run. */
.result-sectors ol{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:6px}
.result-sectors li{display:grid;grid-template-columns:1fr auto 64px;align-items:baseline;gap:10px;padding:7px 10px;border-radius:10px;background:#ffffff0d;border:1px solid #ffffff14}
.result-sectors li span{font:800 10px/1 var(--body);letter-spacing:.14em;color:#9ebcc7}
.result-sectors li b{font:900 italic 20px/1 var(--display);letter-spacing:.03em;color:#fff;font-variant-numeric:tabular-nums}
.result-sectors li em{font:900 12px/1 var(--body);font-style:normal;letter-spacing:.04em;text-align:right;font-variant-numeric:tabular-nums;color:#9ebcc7}
.result-sectors li[data-tone=good]{border-color:#63e6a055}.result-sectors li[data-tone=good] em{color:#63e6a0}
.result-sectors li[data-tone=slow]{border-color:#ffc65a44}.result-sectors li[data-tone=slow] em{color:#ffc65a}
.result-sectors li:not([data-tone]){grid-template-columns:1fr auto}
