/* The members' race page: the sponsor page's scene and drive mode, with the pitch hidden and a lobby on top */
html[data-game] main, html[data-game] .close, html[data-game] .progress, html[data-game] .hint, html[data-game] .top nav,
html[data-game] .lapdone .js-mailto, html[data-game] .lapdone p:not(.rx-post) { display: none !important; }
html[data-game], html[data-game] body { overflow: hidden; height: 100%; }
html[data-game] .top { pointer-events: none; }
html[data-game] .top a { pointer-events: auto; }

.rx { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 5vw, 80px);
  align-items: end; padding: 120px var(--pad) clamp(28px, 6vh, 64px); pointer-events: none;
  background: linear-gradient(90deg, rgb(6 6 7 / .82), rgb(6 6 7 / .2) 55%, rgb(6 6 7 / .7)); transition: opacity .4s; }
.rx > * { pointer-events: auto; }
body.driving:not(.rx-attract) .rx { opacity: 0; pointer-events: none; }
body.driving:not(.rx-attract) .rx > * { pointer-events: none; }
body.rx-attract .drive-ui, body.rx-attract .speedfx { display: none; }
.rx[hidden] { display: none; }

.rx__main h1 { margin: 0; font-weight: 400; font-size: clamp(44px, 6.4vw, 104px); line-height: .95; letter-spacing: -0.045em; max-width: 10ch; }
.rx__main .lead { margin: 18px 0 0; max-width: 44ch; color: rgb(242 240 235 / .82); }
.rx__go { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.rx__guest { background: none; border: 0; padding: 0; color: var(--steel); font: inherit; font-size: 15px; cursor: pointer; border-bottom: 1px solid rgb(154 158 166 / .4); }
.rx__guest:hover, .rx__guest:focus-visible { color: var(--text); border-color: var(--text); }
.rx__note { margin: 16px 0 0; font-size: 14px; color: var(--steel); max-width: 48ch; }
.rx__note b { color: var(--text); font-weight: 400; }
.rx__slack { display: inline-flex; align-items: center; gap: 10px; }
.rx__slack svg { width: 18px; height: 18px; }

.rx__me { position: fixed; top: 20px; right: var(--pad); z-index: 31; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--steel); }
.rx__me img { width: 28px; height: 28px; border-radius: 99px; }
.rx__me b { color: var(--text); font-weight: 400; }
.rx__me button { background: none; border: 0; color: var(--steel); font: inherit; cursor: pointer; padding: 4px; }
.rx__me button:hover { color: var(--text); }
body.driving:not(.rx-attract) .rx__me { display: none; }

.board { background: rgb(12 12 14 / .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgb(255 255 255 / .12); border-radius: 22px; padding: 20px 20px 12px; max-height: min(62vh, 600px); display: flex; flex-direction: column; }
.board__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.board__head h2 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.board__tabs { display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: rgb(255 255 255 / .06); }
.board__tabs button { border: 0; background: none; color: var(--steel); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 99px; cursor: pointer; }
.board__tabs button[aria-selected="true"] { background: rgb(255 255 255 / .12); color: var(--text); }
.board ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.board li { border-top: 1px solid rgb(255 255 255 / .07); font-size: 15px; }
.board .row { width: 100%; display: grid; grid-template-columns: 30px 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 6px; background: none; border: 0; border-radius: 10px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.board .row:hover { background: rgb(255 255 255 / .05); }
.board .row.on { box-shadow: inset 0 0 0 1px #9cc4ff; }
.rx__ghost { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; color: var(--steel); }
.rx__ghost span { margin-right: 4px; }
.rx__ghost button { border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .04); color: var(--text); font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.rx__ghost button[aria-pressed="true"] { border-color: #9cc4ff; background: rgb(156 196 255 / .14); }
.rx__ghost + .rx__go { margin-top: 16px; }
.board li:first-child { border-top: 0; }
.board li .r { color: var(--steel); font-variant-numeric: tabular-nums; text-align: right; }
.board li:nth-child(1) .r { color: var(--signal); }
.board li img, .board li .ph { width: 26px; height: 26px; border-radius: 99px; background: rgb(255 255 255 / .1); object-fit: cover; }
.board li .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li .n small { color: var(--steel); font-size: 12px; margin-left: 6px; }
.board li .t { font-variant-numeric: tabular-nums; }
.board li.me { background: rgb(217 32 43 / .14); border-radius: 10px; border-top-color: transparent; }
.board li.me + li { border-top-color: transparent; }
.board__empty { color: var(--steel); font-size: 15px; padding: 14px 4px 10px; margin: 0; }

.rx-post { margin: 14px 0 18px; font-size: 15px; color: rgb(242 240 235 / .85); min-height: 1.5em; }
.rx-post b { color: var(--text); font-weight: 400; }
.rx-post.is-bad { color: var(--signal); }
.rx-demo { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; font-size: 13px; color: var(--steel); background: rgb(12 12 14 / .8); padding: 6px 12px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .1); }

@media (max-width: 900px) {
  .rx { grid-template-columns: 1fr; align-content: end; overflow-y: auto; padding-top: 88px; background: linear-gradient(180deg, rgb(6 6 7 / .2), rgb(6 6 7 / .9) 45%); }
  .board { max-height: none; }
  .rx__me span { display: none; }
  .rx-demo { top: 64px; bottom: auto; }
}
