/* Тропа: a row of raised slabs on a floor with a faint horizon, the camera follows the gift token */
.g-trail .g-stage { position: relative; padding: 44px 14px 14px; display: flex; flex-direction: column; align-items: center; }
.trl-head { position: absolute; left: 12px; top: 10px; height: 28px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 14px; background: #232536; color: var(--fg); font-size: 12px; font-weight: 800; white-space: nowrap; }
.g-trail .history { left: 120px; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0px, rgba(0,0,0,1) 22px); mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0px, rgba(0,0,0,1) 22px); }
.trl-x { position: relative; z-index: 3; margin-top: 4px; font-size: 54px; line-height: 1; font-weight: 900; letter-spacing: -1.5px; color: var(--fg); white-space: nowrap; }
.trl-x.trl-w { color: var(--win); text-shadow: 0 0 34px rgba(212,255,58,.45), 0 0 10px rgba(212,255,58,.22); }
.trl-x.trl-l { color: var(--loss); }
.trl-x .trl-coin { width: .62em; height: .62em; margin-left: .12em; vertical-align: -.02em; }
.trl-next { margin-top: 8px; height: 20px; font-size: 14px; font-weight: 700; color: var(--fg2); white-space: nowrap; }
.trl-next b { color: var(--fg); font-weight: 900; }
.trl-next b.win-c { color: var(--win); }
.trl-next b.trl-red { color: var(--loss); }
/* the scene: sky glow, a horizon line, a floor with lane lines; the track scrolls over it */
.trl-view { position: relative; align-self: stretch; margin: 8px -14px 0; height: 160px; overflow: hidden; }
.trl-sky { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(180deg, rgba(139,123,255,0) 0%, rgba(139,123,255,.10) 100%); }
.trl-hz { position: absolute; left: 0; right: 0; top: 40px; height: 1px; background: linear-gradient(90deg, rgba(190,180,255,0) 0%, rgba(190,180,255,.45) 50%, rgba(190,180,255,0) 100%); box-shadow: 0 0 16px 2px rgba(139,123,255,.22); }
.trl-floor { position: absolute; left: 0; right: 0; top: 41px; bottom: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0px, rgba(255,255,255,.045) 1px, rgba(255,255,255,0) 1px, rgba(255,255,255,0) 36px), linear-gradient(180deg, rgba(139,123,255,.08) 0%, rgba(139,123,255,0) 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.25) 0%, #000000 40%, rgba(0,0,0,.35) 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,.25) 0%, #000000 40%, rgba(0,0,0,.35) 100%); }
.trl-floor::before, .trl-floor::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: rgba(190,180,255,.16); }
.trl-floor::before { top: 22px; }
.trl-floor::after { top: 108px; height: 2px; background: rgba(190,180,255,.12); }
.trl-track { position: absolute; left: 0; top: 0; width: 1px; height: 100%; will-change: transform; }
/* slab: a top face where the token stands and a 20 px front edge with the multiplier printed on it,
   so the value of the tile under the token stays readable */
.trl-s { position: absolute; top: 64px; width: 72px; height: 66px; border-radius: 12px; overflow: hidden; display: block; background: linear-gradient(180deg, #454a6c 0%, #2f3248 100%); box-shadow: 0 18px 16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14); transform-origin: 50% 100%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.trl-ed { position: absolute; left: 0; right: 0; bottom: 0; height: 21px; display: grid; place-items: center; background: #181a26; box-shadow: inset 0 1px 0 rgba(0,0,0,.35); }
.trl-s b { position: relative; z-index: 1; font-size: 12.5px; font-weight: 800; color: var(--fg); white-space: nowrap; letter-spacing: -.2px; }
.trl-s b.trl-long { font-size: 11px; letter-spacing: -.4px; }
.trl-ft { position: absolute; left: 7px; right: 7px; top: 5px; height: 12px; border-radius: 7px; background: rgba(255,255,255,.05); pointer-events: none; }
.trl-s:active { top: 67px; }
.trl-s.trl-start { background: linear-gradient(180deg, #2c2f45 0%, #232536 100%); }
.trl-s.trl-start b { font-size: 11px; color: var(--fg2); text-transform: uppercase; letter-spacing: .4px; }
.trl-s.trl-fin { box-shadow: 0 18px 16px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,195,55,.7); }
.trl-s.trl-fin b { color: var(--gold); }
.trl-s.trl-nextc { background: linear-gradient(180deg, #555b84 0%, #3d4160 100%); box-shadow: 0 18px 16px rgba(0,0,0,.5), inset 0 0 0 2px rgba(212,255,58,.6); }
.trl-s.trl-past { background: linear-gradient(180deg, #6f8a1c 0%, #566d12 100%); }
.trl-s.trl-past .trl-ed { background: #2e3c06; }
.trl-s.trl-past b { color: #eaffb8; }
.trl-s.trl-on { background: linear-gradient(180deg, #e6ff7a 0%, #d4ff3a 100%); box-shadow: 0 0 28px rgba(212,255,58,.35), inset 0 1px 0 rgba(255,255,255,.4); }
.trl-s.trl-on .trl-ed { background: #7c9a0a; }
.trl-s.trl-on b { color: var(--on-accent); }
.trl-s.trl-trap { background: linear-gradient(180deg, #ff8a7c 0%, #ff5d63 100%); box-shadow: 0 0 28px rgba(255,93,99,.45), inset 0 1px 0 rgba(255,255,255,.3); }
.trl-s.trl-trap .trl-ed { background: #8c1020; }
.trl-s.trl-trap b { color: #ffffff; }
.trl-crack { position: absolute; left: 0; top: 0; width: 100%; height: 45px; pointer-events: none; }
.trl-spikes { position: absolute; top: 100px; width: 72px; height: 30px; transform: scaleY(0); transform-origin: 50% 100%; pointer-events: none; }
.trl-tk { position: absolute; z-index: 3; left: 0; top: 20px; width: 64px; height: 64px; max-width: none; transform-origin: 50% 100%; filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); pointer-events: none; will-change: transform; }
.trl-sh { position: absolute; z-index: 2; left: 0; top: 78px; width: 50px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.42); pointer-events: none; }
.trl-view .fx-p { z-index: 4; }
/* the stage step button: raised violet, sinks on press */
.trl-go { position: relative; top: 0; margin-top: 4px; width: 100%; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(180deg, #a497ff 0%, #8b7bff 60%); box-shadow: 0 5px 0 #5546c4, 0 12px 24px rgba(139,123,255,.18); color: #ffffff; font-size: 18px; font-weight: 900; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.trl-go:not(.trl-off):active { top: 3px; box-shadow: 0 2px 0 #5546c4; }
.trl-go.trl-off { background: var(--tile); box-shadow: 0 5px 0 var(--tile-edge); color: var(--fg2); }
/* controls */
.trl-seg { padding: 3px; gap: 2px; }
.trl-seg button { height: 40px; padding: 0; font-size: 12.5px; min-width: 0; }
.trl-seg button:disabled { opacity: .55; }
/* lobby tile */
.trl-tile { overflow: hidden; }
.trl-tile-tk { position: absolute; left: 47cqw; top: 21cqw; width: 38cqw; height: 38cqw; filter: drop-shadow(0 3cqw 3cqw rgba(0,0,0,.5)); }
