/* Slope 26: eight riders to pick from (riders50.js). The Locker's RIDERS page and the line-up cards. */
.rider-pick-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}
.rider-pick-toolbar h3{font-size:32px;font-style:italic;margin:6px 0;color:#fff}
.rider-pick-toolbar p{font-size:13px;margin:0;color:#b9cad8}
.rider-pick{display:grid;grid-template-columns:minmax(290px,.78fr) minmax(0,1.5fr);gap:22px;align-items:start}
.rider-pick .garage-showroom{position:sticky;top:0}
#gamePanel .rider-pick .garage-stage{height:clamp(250px,calc(100dvh - 470px),440px);border-radius:18px 18px 0 0;background:radial-gradient(72% 62% at 50% 40%,color-mix(in srgb,var(--rider) 46%,#22314f),#0b111e 78%);transition:background .3s}
.rider-name{position:absolute;z-index:1;left:18px;top:44px;max-width:36%;pointer-events:none}
.rider-name .eyebrow{color:color-mix(in srgb,var(--rider) 60%,#fff)}
.rider-name h3{margin:4px 0 6px;font-size:52px;font-style:italic;line-height:.86;color:#fff;text-shadow:0 2px 18px #0009}
.rider-name p{margin:0;font-size:13px;line-height:1.25;color:#e6f0f7;text-shadow:0 1px 8px #000b}
.rider-plate{display:grid;gap:10px;padding:14px 16px 16px;border:1px solid #ffffff1f;border-top:0;border-radius:0 0 18px 18px;background:linear-gradient(180deg,#122131,#0c1826);color:#dbe8f2}
.rider-plate small{font-size:11px;color:#9fb6c8}
.rider-pieces{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.rider-pieces li{padding:5px 10px;border-radius:999px;border:1px solid color-mix(in srgb,var(--rider) 55%,#ffffff30);background:color-mix(in srgb,var(--rider) 16%,transparent);font-size:10px;font-weight:800;letter-spacing:.1em;color:#fff}
.rider-plate .primary-button{justify-self:stretch;justify-content:center}
.rider-plate .primary-button[disabled]{opacity:1;background:#1d3346;color:#9fe3ff;border-color:#9fe3ff66;cursor:default}

.rider-lineup{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rider-card{position:relative;display:flex;flex-direction:column;gap:3px;padding:0 0 12px;border:1px solid #ffffff1f;border-radius:16px;background:var(--brand-panel);color:#fff;text-align:left;overflow:hidden;cursor:pointer;transition:transform .18s,border-color .18s,box-shadow .18s}
.rider-card:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--rider) 70%,#fff)}
.rider-card.selected{border-color:var(--brand-blue);box-shadow:0 0 0 2px var(--brand-blue)}
.rider-card:focus-visible{outline:3px solid #fff;outline-offset:2px}
.rider-card-art{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;background:radial-gradient(78% 58% at 50% 34%,color-mix(in srgb,var(--rider) 35%,transparent),transparent 82%)}
.rider-card-art::after{content:"";position:absolute;left:14%;right:14%;bottom:5%;height:7%;border-radius:50%;background:#000;opacity:.28;filter:blur(7px)}
.rider-card-art img{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:contain}
.rider-card b{padding:0 12px;font:900 italic 24px/1 var(--display);letter-spacing:.02em}
.rider-card small{padding:0 12px;min-height:2.4em;font-size:11px;line-height:1.2;color:#c3d3df}
.rider-you{position:absolute;z-index:2;top:8px;left:8px;padding:4px 9px;border-radius:999px;background:var(--brand-blue);color:var(--brand-navy);font:900 10px/1 var(--display);font-style:normal;letter-spacing:.14em}
/* The line-up walks on: each card a beat after the one before. */
@keyframes rider-walk-on{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.rider-lineup .rider-card{animation:rider-walk-on .42s cubic-bezier(.2,.8,.2,1) backwards}
.rider-lineup .rider-card:nth-child(2){animation-delay:.04s}.rider-lineup .rider-card:nth-child(3){animation-delay:.08s}.rider-lineup .rider-card:nth-child(4){animation-delay:.12s}
.rider-lineup .rider-card:nth-child(5){animation-delay:.16s}.rider-lineup .rider-card:nth-child(6){animation-delay:.2s}.rider-lineup .rider-card:nth-child(7){animation-delay:.24s}.rider-lineup .rider-card:nth-child(8){animation-delay:.28s}
.first-sheet .rider-lineup .rider-card{animation:none}
body.reduced-motion .rider-lineup .rider-card{animation:none}
body.reduced-motion .rider-card,body.reduced-motion .rider-card-art img{transition:none}
@media(prefers-reduced-motion:reduce){.rider-lineup .rider-card{animation:none}.rider-card,.rider-card-art img{transition:none}}

/* The way in from YOUR OUTFIT. */
.equipped-heading .rider-way-in{display:inline-flex;align-items:center;gap:8px}
.rider-way-in i{width:10px;height:10px;border-radius:50%;background:var(--rider,#9fe3ff);font-style:normal}

@media(max-width:1100px){.rider-lineup{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.rider-card b{font-size:20px}.rider-card small{font-size:10px}}
@media(max-width:900px){
  .rider-pick{grid-template-columns:1fr;gap:14px}
  .rider-pick .garage-showroom{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #gamePanel .rider-pick .garage-stage{height:100%;min-height:250px;border-radius:18px 0 0 18px}
  .rider-plate{border-top:1px solid #ffffff1f;border-left:0;border-radius:0 18px 18px 0;align-content:center}
  .rider-name h3{font-size:40px}
  .rider-pick-toolbar{align-items:flex-start}.rider-pick-toolbar h3{font-size:26px}
}
@media(max-width:620px){
  .rider-pick-toolbar p{display:none}
  .rider-pick .garage-showroom{grid-template-columns:1fr}
  #gamePanel .rider-pick .garage-stage{height:250px;border-radius:18px 18px 0 0}
  .rider-plate{border-left:1px solid #ffffff1f;border-top:0;border-radius:0 0 18px 18px}
  /* On a phone the line-up is one row to slide along, big enough to read each rider. */
  .rider-lineup{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 2px 10px;margin:0 -2px;scrollbar-width:none}
  .rider-lineup::-webkit-scrollbar{display:none}
  .rider-lineup .rider-card{flex:0 0 31%;scroll-snap-align:start}
  .rider-lineup .rider-card b{font-size:18px;padding:0 9px}.rider-lineup .rider-card small{display:none}
  /* The choice comes first on a phone: the line-up above, the rider you are looking at below it. */
  .rider-pick .rider-lineup{order:-1}
  .rider-pick-toolbar{margin-bottom:10px}.rider-pick-toolbar h3{font-size:24px}
  #gamePanel .rider-pick .garage-stage{height:232px}
}
@media(max-height:480px) and (orientation:landscape){
  .rider-pick{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
  .rider-pick .garage-showroom{display:block}
  .rider-pick-toolbar{margin-bottom:8px}.rider-pick-toolbar p,.rider-pick .stage-topline,.rider-pieces{display:none}
  #gamePanel .rider-pick .garage-stage{height:150px;min-height:0;border-radius:18px 18px 0 0}
  .rider-plate{border-left:1px solid #ffffff1f;border-top:0;border-radius:0 0 18px 18px;padding:10px 12px}.rider-name{top:12px;left:14px}.rider-name h3{font-size:30px}.rider-plate small,.rider-name p{display:none}
  .rider-lineup{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px}.rider-lineup .rider-card{flex:0 0 31%}
}
@media(max-height:780px){.rider-plate small{display:none}.rider-pick-toolbar{margin-bottom:12px}}

/* Part 69: the first-run setup opens on WHO'S RIDING? (first-ride.js with the game's riders). */
.first-ride.has-riders>section{width:min(1040px,100%);padding:26px 36px 0}
.first-ride.has-riders h2{font-size:44px;margin:6px 0 10px}
.first-who{margin:0 0 14px}
.first-who-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.first-ride .first-rider-now{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0;font-size:14px;line-height:1.3;color:#dbe8f2}
.first-rider-now b{font:900 italic 28px/1 var(--display);letter-spacing:.02em;color:color-mix(in srgb,var(--rider) 62%,#fff)}
.first-rider-now i{font-style:normal;font-size:10px;font-weight:800;letter-spacing:.1em;color:#9fb6c8}
.first-sport{display:flex;flex:none;padding:4px;border:1px solid #ffffff2e;border-radius:999px;background:#0c1420}
.first-sport button{min-height:38px;padding:0 18px;border:0;border-radius:999px;background:transparent;color:#b6c6d6;font:800 12px var(--body);letter-spacing:.08em;cursor:pointer}
.first-sport button[aria-pressed=true]{background:var(--brand-raised);color:var(--brand-blue-hi);box-shadow:inset 0 0 0 1px var(--brand-blue)}
.first-ride .rider-lineup{grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
.first-ride .rider-card{padding-bottom:10px;border-radius:14px}
.first-ride .rider-card b{padding:0 9px;font-size:19px}
.first-ride .rider-card small{display:none}
.first-ride .rider-you{top:6px;left:6px;padding:3px 7px;font-size:9px}
.first-ride .first-who-note{margin:8px 0 0;font-size:12px;color:#9fb6c8}
.first-sub{margin:0 0 10px;padding-top:14px;border-top:1px solid #ffffff1c;font:800 11px var(--body);letter-spacing:.12em;color:#73c1ff}
/* The controls sit in one row under the riders: keyboard, then the three grabs. */
.first-ride.has-riders .first-set{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:12px;align-items:end}
.first-ride.has-riders .first-set .first-grabs{display:contents}
.first-ride.has-riders .first-extras{display:flex;flex-wrap:wrap;align-items:center;gap:6px 34px;margin-top:12px}
.first-ride.has-riders .first-key-guide{margin:0}
.first-ride.has-riders .first-assist{margin:0;min-height:48px;flex:1 1 320px}
.first-ride.has-riders .first-touch-note{margin:8px 0 0}
/* SAVE & RIDE stays in reach however tall the setup is. */
.first-ride.has-riders footer{position:sticky;bottom:0;z-index:3;margin:16px -36px 0;padding:14px 36px 24px;background:linear-gradient(180deg,#0d131e00,#0e1420 22%)}
@media(max-width:900px){
  .first-ride.has-riders>section{padding:26px 22px 0}
  .first-ride.has-riders footer{margin:14px -22px 0;padding:12px 22px 20px}
  /* Narrower than eight cards can stand: one row to slide along. */
  .first-ride .rider-lineup{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 2px 8px;margin:0 -2px;scrollbar-width:none}
  .first-ride .rider-lineup::-webkit-scrollbar{display:none}
  .first-ride .rider-lineup .rider-card{flex:0 0 clamp(96px,22%,150px);scroll-snap-align:start}
  .first-ride.has-riders .first-set{grid-template-columns:repeat(3,1fr)}
  .first-ride.has-riders .first-set .first-layout{grid-column:1/-1}
}
@media(max-width:600px){
  .first-ride.has-riders h2{font-size:36px}
  .first-who-bar{flex-direction:column;align-items:stretch;gap:10px}
  .first-sport button{flex:1}
  .first-ride .rider-lineup .rider-card{flex:0 0 30%}
  .first-rider-now i{display:none}
  .first-ride.has-riders footer{flex-direction:row}
  /* Three grab names do not fit side by side on a narrow phone. */
  .first-ride.has-riders .first-set{grid-template-columns:1fr}
}
@media(orientation:landscape) and (max-height:540px){
  /* A phone on its side: the heading shrinks so the whole line-up, names included, stands above SAVE & RIDE. */
  .first-ride.has-riders>section{width:min(900px,100%);padding:14px 22px 0}
  .first-ride.has-riders .first-eyebrow{display:none}
  .first-ride.has-riders h2{font-size:26px;margin:0 0 6px}
  .first-who-bar{margin-bottom:8px}.first-sport{margin-right:50px}.first-sport button{min-height:32px}
  .first-rider-now b{font-size:22px}
  .first-ride .rider-lineup .rider-card{flex:0 0 96px}
  .first-ride .rider-card b{font-size:17px}
  .first-ride .first-who-note{display:none}
  .first-ride.has-riders .first-set{grid-template-columns:repeat(3,1fr)}
  .first-ride.has-riders footer{padding:8px 22px 12px}
  .first-ride.has-riders footer button{min-height:44px;padding:8px 14px}
}
@media(pointer:coarse){.first-ride.has-riders .first-grabs{margin-top:0}}
@media(pointer:coarse) and (min-width:601px){.first-ride.has-riders .first-set{grid-template-columns:repeat(3,1fr)}}
