/* Гонка: lanes stacked on the stage, gift runners, a chequered finish on the right */
.g-race .g-stage { padding: 40px 12px 12px; }
.rce-track { height: 286px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
/* a lane: a raised row tinted with its colour; the player's lane is violet and stands higher */
.rce-lane { position: relative; flex: none; height: var(--h, 64px); width: 100%; border-radius: 12px; padding: 0; overflow: hidden; text-align: left; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(90deg, var(--lt) 0%, rgba(255,255,255,0) 70%), repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 38px, rgba(255,255,255,.025) 38px 40px), var(--tile);
  box-shadow: 0 4px 0 var(--tile-edge), inset 0 1px 0 rgba(255,255,255,.06); }
.rce-n6 .rce-lane { border-radius: 10px; }
.rce-lane:not(:disabled):active { top: 2px; box-shadow: 0 2px 0 var(--tile-edge), inset 0 1px 0 rgba(255,255,255,.06); }
.rce-lane.rce-on { background: linear-gradient(90deg, rgba(139,123,255,.34) 0%, rgba(139,123,255,.1) 75%), var(--tile-hi); box-shadow: 0 4px 0 #4f41c0, inset 0 0 0 2px #8b7bff, 0 0 18px rgba(139,123,255,.22); }
.rce-lane.rce-on:not(:disabled):active { box-shadow: 0 2px 0 #4f41c0, inset 0 0 0 2px #8b7bff; }
.rce-lane.rce-won { box-shadow: 0 4px 0 #8fb012, inset 0 0 0 2px #d4ff3a, 0 0 22px rgba(212,255,58,.3); }
.rce-lane.rce-lost { background: linear-gradient(90deg, rgba(255,93,99,.3) 0%, rgba(255,93,99,.08) 75%), var(--tile); box-shadow: 0 4px 0 #7a2228, inset 0 0 0 2px #ff5d63; }
.rce-lane.rce-out .rce-run, .rce-lane.rce-out .rce-no { opacity: .5; }
.rce-lane:disabled { cursor: default; }
/* lane number, start line, finish strip */
.rce-no { position: absolute; left: 8px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--lc); color: #0c0d13; font-size: 12px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.rce-start { position: absolute; left: 38px; top: 6px; bottom: 6px; width: 2px; border-radius: 1px; background: rgba(255,255,255,.28); }
.rce-fin { position: absolute; right: 10px; top: 0; bottom: 0; width: 10px; background: repeating-conic-gradient(#ffffff 0 25%, #11131c 0 50%) 0 0 / 10px 10px; opacity: .85; }
.rce-flash { position: absolute; right: 0; top: 0; bottom: 0; width: 64px; opacity: 0; pointer-events: none; background: radial-gradient(60% 90% at 85% 50%, rgba(255,255,255,.95) 0%, rgba(212,255,58,.5) 40%, rgba(212,255,58,0) 100%); }
/* «Ваш» on the player's lane, the place badges at the finish */
.rce-you { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); height: 22px; padding: 0 9px; border-radius: 11px; background: #8b7bff; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; white-space: nowrap; box-shadow: 0 2px 0 #4f41c0; pointer-events: none; }
.rce-place { position: absolute; right: calc(26px + var(--rs, 50px)); top: 50%; width: 24px; height: 24px; border-radius: 50%; color: #0c0d13; font-size: 13px; font-weight: 900; display: grid; place-items: center; opacity: 0; transform: translateY(-50%); box-shadow: 0 2px 0 rgba(0,0,0,.4); z-index: 3; pointer-events: none; }
/* a runner: the gift with a soft shadow under it */
.rce-run { position: absolute; left: 44px; top: 50%; width: var(--rs, 50px); height: var(--rs, 50px); margin-top: calc(var(--rs, 50px) / -2); z-index: 2; pointer-events: none; will-change: transform; }
.rce-run img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.rce-sh { position: absolute; left: 14%; right: 14%; bottom: -1px; height: 18%; border-radius: 50%; background: rgba(0,0,0,.42); }
/* mode switch: raised segmented chips */
.rce-seg { padding: 3px; gap: 3px; }
.rce-seg button { height: 40px; padding: 0; font-size: 13px; min-width: 0; }
.rce-seg button.on { background: var(--tile-hi); box-shadow: 0 3px 0 var(--tile-edge); color: #fff; }
.rce-seg button:disabled { opacity: .55; }
