/* Scrolls: Lanes, Road Notes, odometer, gestures, Prompt and End of the Road cards */
.sx-top { grid-template-columns: auto 1fr auto; gap: .4rem; }
.sx-top__l { display: flex; align-items: center; gap: .4rem; }
.sx-odo { display: inline-flex; align-items: center; gap: .3rem; height: 42px; padding: 0 .7rem 0 .75rem; border: 1px solid rgb(255 255 255 / .14); border-radius: 999px; background: rgb(0 0 0 / .42); color: #fff; font: 800 .95rem/1 var(--font-display); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.sx-odo small { font: 700 .62rem/1 var(--font-body); color: rgb(255 255 255 / .65); text-transform: uppercase; letter-spacing: .06em; margin-right: .2rem; }
.sx-odo__n { min-width: 2.2ch; text-align: right; }
.sx-odo__s { display: inline-flex; align-items: center; gap: .1rem; padding-left: .45rem; border-left: 1px solid rgb(255 255 255 / .2); color: var(--amber, #f5a623); }
.sx-odo__s .js-i { width: 14px; height: 14px; fill: currentColor; }
.sx-odo.is-roll .sx-odo__n { animation: sxRoll .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes sxRoll { 0% { transform: translateY(60%); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* lanes */
.sx-lanes { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-top: .45rem; gap: 0 !important; padding: 0 .2rem; border-radius: 999px; background: rgb(0 0 0 / .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.sx-lanes::-webkit-scrollbar { display: none; }
.sx-lanes button { padding: .55rem .62rem !important; font-size: .86rem !important; white-space: nowrap; }
.sx-lanes button + button { background-image: linear-gradient(rgb(255 255 255 / .55) 50%, transparent 50%); background-size: 2px 8px; background-repeat: repeat-y; background-position: left center; background-clip: padding-box; }
.sx-lanes button[aria-selected="true"]::after { background: var(--amber, #f5a623) !important; }
.sx-cbbtn { padding: 0 11px !important; letter-spacing: .04em; }
.sx-cbbtn[aria-pressed="true"] { background: rgb(52 211 153 / .92) !important; color: #06281b !important; }
.sx-blink { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.sx-blink i { position: absolute; top: calc(max(.6rem, env(safe-area-inset-top)) + 52px); width: 34px; height: 34px; opacity: 0; background: var(--amber, #f5a623); filter: drop-shadow(0 0 16px rgb(245 166 35 / .9)); }
.sx-blink__l { left: 10px; clip-path: polygon(100% 0, 0 50%, 100% 100%, 75% 50%); }
.sx-blink__r { right: 10px; clip-path: polygon(0 0, 100% 50%, 0 100%, 25% 50%); }
.sx-blink.is-l .sx-blink__l, .sx-blink.is-r .sx-blink__r { animation: sxBlink .9s steps(1) both; }
@keyframes sxBlink { 0% { opacity: 1; } 33% { opacity: 0; } 55% { opacity: 1; } 88%, 100% { opacity: 0; } }
.sx-feed.is-lane-r { animation: sxLaneR .35s ease-out; } .sx-feed.is-lane-l { animation: sxLaneL .35s ease-out; }
@keyframes sxLaneR { from { transform: translateX(14%); opacity: .3; } } @keyframes sxLaneL { from { transform: translateX(-14%); opacity: .3; } }
.sx-lanehint, .sx-new { position: absolute; z-index: 6; left: 50%; top: calc(max(.6rem, env(safe-area-inset-top)) + 104px); transform: translateX(-50%); margin: 0; padding: .45rem .95rem; border-radius: 999px; background: rgb(0 0 0 / .66); color: #fff; font-size: .84rem; font-weight: 700; white-space: nowrap; pointer-events: none; animation: sxIn .3s ease; }
.sx-new { background: var(--amber, #f5a623); color: #141414; top: calc(max(.6rem, env(safe-area-inset-top)) + 146px); }
.sx-lanehint[hidden], .sx-new[hidden] { display: none; }
/* Road Notes (CB chatter) */
.sx-cb { position: absolute; z-index: 3; left: .75rem; right: 84px; bottom: calc(9.2rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; pointer-events: none; }
.sx-cbm { display: flex; align-items: center; gap: .45rem; max-width: 100%; padding: .32rem .7rem .32rem .32rem; border-radius: 999px; background: rgb(10 10 10 / .62); border: 1px solid rgb(52 211 153 / .45); box-shadow: 0 6px 18px -8px rgb(0 0 0 / .7); font-size: .86rem; line-height: 1.25; animation: sxCbIn .35s cubic-bezier(.2, 1.3, .4, 1); transition: opacity .4s, transform .4s; }
.sx-cbm.is-out { opacity: 0; transform: translateY(-8px); }
.sx-cbm__av img { display: block; width: 26px !important; height: 26px !important; border-radius: 50%; object-fit: cover; }
.sx-cbm__t { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.sx-cbm__t b { color: rgb(110 231 183); font-weight: 800; }
@keyframes sxCbIn { from { opacity: 0; transform: translateX(-24px) scale(.9); } }
.sx-ticks { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 0px); height: 3px; pointer-events: none; z-index: 1; }
.sx-ticks i { position: absolute; bottom: 4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: rgb(52 211 153); box-shadow: 0 0 6px rgb(52 211 153 / .9); }
.sx-pinrow { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem 0; }
.sx-pinrow small { color: var(--color-text-muted); font-size: .76rem; line-height: 1.3; }
.sx-pin { flex: none; display: inline-flex; align-items: center; gap: .3rem; height: 34px; padding: 0 .75rem; border-radius: 999px; border: 1.5px solid var(--js-line); background: transparent; color: var(--color-text); font: 800 .8rem/1 var(--font-body); cursor: pointer; }
.sx-pin .js-i { width: 16px; height: 16px; }
.sx-pin[aria-pressed="true"] { background: rgb(16 185 129); border-color: rgb(16 185 129); color: #fff; }
.sx-jump { display: inline-block; padding: .05rem .45rem; border: 0; border-radius: 6px; background: rgb(16 185 129 / .16); color: rgb(5 150 105); font: 800 .78rem/1.5 var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; vertical-align: 1px; }
[data-theme="dark"] .sx-jump { color: rgb(110 231 183); }
/* hold speed chip */
.sx-speed { position: absolute; z-index: 6; left: 50%; top: calc(max(.6rem, env(safe-area-inset-top)) + 104px); transform: translateX(-50%); padding: .45rem .95rem; border-radius: 999px; background: rgb(0 0 0 / .65); color: #fff; font: 900 .9rem/1 var(--font-display); letter-spacing: .02em; white-space: pre; pointer-events: none; animation: sxIn .2s ease; }
.sx-speed.is-slow { color: rgb(147 197 253); }
.sx-speed[hidden] { display: none; }
.sx-v { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* honk */
.sx-honk { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font: 900 1.1rem/1 var(--font-display); letter-spacing: .12em; color: #fff; text-shadow: 0 2px 10px rgb(0 0 0 / .6); }
.sx-s.is-shake .sx-v { animation: sxShake .38s linear; }
@keyframes sxShake { 0%, 100% { transform: none; } 20% { transform: translate(-3px, 1px); } 40% { transform: translate(3px, -1px); } 60% { transform: translate(-2px, 0); } 80% { transform: translate(2px, 1px); } }
/* cards: Prompt of the Day and End of the Road */
.sx-s--card .sx-stage { display: grid; place-items: center; background: radial-gradient(120% 70% at 50% 0%, rgb(245 166 35 / .22), transparent 60%), repeating-linear-gradient(180deg, transparent 0 46px, rgb(245 166 35 / .55) 46px 82px, transparent 82px 128px) center / 6px 100% no-repeat, #0b0c0e; }
.sx-card { position: relative; width: min(92%, 420px); padding: 1.6rem 1.4rem; border-radius: 22px; background: rgb(18 19 22 / .92); border: 1px solid rgb(255 255 255 / .1); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9); text-align: center; }
.sx-card__e { margin: 0 0 .5rem; color: var(--amber, #f5a623); font: 800 .74rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.sx-card h2 { margin: 0; font: 900 clamp(1.45rem, 6vw, 1.9rem)/1.12 var(--font-display); }
.sx-card__tag { margin: .7rem 0 0; font: 900 1.05rem/1 var(--font-display); color: rgb(110 231 183); }
.sx-card__f { margin: .9rem auto 0; max-width: 34ch; color: rgb(255 255 255 / .72); font-size: .88rem; line-height: 1.45; }
.sx-card__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.1rem; }
.sx-card__ghost { color: #fff !important; border-color: rgb(255 255 255 / .3) !important; background: transparent !important; }
.sx-end__g { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: 1.1rem; }
.sx-end__g span { display: flex; flex-direction: column; gap: .25rem; padding: .7rem .2rem; border-radius: 14px; background: rgb(255 255 255 / .06); font-size: .68rem; font-weight: 700; color: rgb(255 255 255 / .65); text-transform: uppercase; letter-spacing: .05em; }
.sx-end__g b { font: 900 1.35rem/1 var(--font-display); color: #fff; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.sx-end__g--d span { background: var(--color-surface-2); color: var(--color-text-muted); }
.sx-end__g--d b { color: var(--color-text); }
.sx-end__f { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.sx-end__u { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 92px; padding: .6rem .3rem; border-radius: 14px; border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .04); color: #fff; font: 700 .78rem/1.2 var(--font-body); cursor: pointer; }
.sx-end__u img { width: 40px !important; height: 40px !important; border-radius: 50%; object-fit: cover; }
.sx-end__u span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-end__u em { font-style: normal; color: #141414; background: var(--amber, #f5a623); padding: .2rem .55rem; border-radius: 999px; font-weight: 800; font-size: .72rem; }
.sx-end__u.is-done em { background: rgb(52 211 153); }
@media (max-width: 380px) { .sx-odo small, .sx-odo__s { display: none; } .sx-lanes button { padding: .5rem .45rem !important; font-size: .8rem !important; } .sx-auto { padding: 0 9px; } .sx-create span { display: none; } }
@media (prefers-reduced-motion: reduce) { .sx-feed.is-lane-r, .sx-feed.is-lane-l, .sx-s.is-shake .sx-v, .sx-cbm { animation: none; } }

.sx .sx-hint { top: calc(max(.6rem, env(safe-area-inset-top)) + 104px); }
.sx-s--card .sx-card { margin-top: 3rem; }
