.first-ride {
  --sheet-ink: var(--brand-snow);
  --sheet-muted: var(--brand-muted);
  --sheet-edge: var(--brand-stroke);
  position: fixed; inset: 0; z-index: 120;
  display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  color: var(--sheet-ink); font-family: var(--body);
  background: rgb(5 13 23 / .77);
}
.first-ride.hidden,.first-sheet [hidden] { display: none !important; }
.first-ride .first-sheet,.first-ride.has-riders > section.first-sheet {
  position: relative; display:grid; grid-template-rows:auto minmax(0, 1fr) auto;
  box-sizing: border-box; width:min(62rem,100%); min-width:0; min-height:0; max-height:100%;
  padding:0; overflow:hidden; border:1px solid var(--brand-stroke); border-radius:var(--s26-r-l);
  background:var(--brand-panel); box-shadow:var(--s26-shadow);
}
.first-header,.first-content,.first-ride .first-sheet footer {padding-inline:clamp(14px,3vw,32px)}
.first-header {padding-top:clamp(8px,1.8vmin,19px)}
.first-heading {display:flex; align-items:center; justify-content:space-between; column-gap:12px}
.first-ride .first-heading h2,.first-ride.has-riders .first-heading h2 {
  color:var(--sheet-ink); font:850 italic clamp(1.8rem,4.3vw,2.9rem)/1 var(--display); letter-spacing:-.015em; margin:0;
}
.first-ride .first-close {
  flex:0 0 44px; position:static; display:grid; place-items:center; width:44px; height:44px;
  padding:0; font:400 27px/1 var(--body); background:var(--brand-raised); color:var(--sheet-ink);
  border:1px solid var(--sheet-edge); border-radius:50%; cursor:pointer;
}
.first-tabs {display:flex; gap:5px; margin-block:8px 0; border-bottom:1px solid var(--brand-edge)}
.first-tabs button {
  border:0; border-bottom:3px solid transparent; background:transparent; color:var(--sheet-muted);
  font:650 1rem var(--body); padding:.3rem .6rem; min-height:44px; cursor:pointer;
}
.first-tabs button[aria-selected="true"] {color:var(--sheet-ink); border-bottom-color:var(--brand-blue)}
.first-content {min-width:0; min-height:0; overflow:auto; padding-block:14px; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; scrollbar-color:#647276 transparent}
.first-sheet .first-who {margin:0}
.first-sheet .first-who-bar {display:flex; flex-flow:row wrap; align-items:center; justify-content:space-between; gap:8px 20px; margin-bottom:12px}
.first-ride .first-sheet .first-rider-now {display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;margin:0;min-width:0;color:var(--sheet-muted);font-size:.94rem}
.first-sheet .first-rider-now b {color:var(--sheet-ink);font:800 1.48rem/1.1 var(--display);font-style:italic}
.first-sheet .first-rider-now i {display:none}
.first-sheet .first-sport {display:flex;gap:4px;margin:0}
.first-sheet .first-sport button {min-height:44px;padding:.4rem .8rem;font:750 .9rem var(--body);border-radius:8px}
.first-ride .first-sheet .rider-lineup {
  display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;overflow:visible;padding:3px;margin:0;
}
.first-sheet .rider-lineup .rider-card {min-width:0}
.first-sheet .rider-card-art {width:100%;max-height:9rem}
.first-sheet .rider-card-art img {object-fit:contain}
.first-ride .first-sheet .rider-card b {font:750 clamp(.84rem,1.7vw,1.15rem)/1.22 var(--display);padding:0 5px}
.first-ride .first-sheet .rider-you {font:700 .7rem var(--body);padding:2px 4px;top:3px;left:3px}
.first-ride .first-sheet .first-set {display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
.first-sheet .first-set .first-layout,.first-sheet .first-set .first-grabs label {grid-column:auto;display:grid;gap:4px;min-width:0;color:var(--sheet-muted);font:650 .88rem var(--body)}
.first-sheet .first-set .first-grabs {display:contents}
.first-ride .first-sheet select {
  width:100%;min-width:0;min-height:44px;padding:8px 4px 8px 8px;border:1px solid var(--sheet-edge);
  border-radius:8px;color:var(--sheet-ink);background:var(--brand-raised);font:600 1rem var(--body);color-scheme:dark;
}
.first-ride .first-sheet .first-assist {display:flex;align-items:center;gap:12px;min-height:48px;margin:13px 0}
.first-sheet .first-assist input {width:22px;height:22px;accent-color:var(--brand-blue)}
.first-sheet .first-assist strong,.first-sheet .first-assist small {display:block}
.first-sheet .first-assist strong {font-size:1rem;color:var(--sheet-ink)}
.first-sheet .first-assist small,.first-touch-guide {font:400 .9rem/1.4 var(--body);color:var(--sheet-muted)}
.first-sheet .first-touch-guide {display:none;margin:7px 0}
.first-ride .first-sheet .first-key-guide {display:flex;gap:12px;flex-wrap:wrap;margin:10px 0;color:var(--sheet-muted);font-size:.9rem}
.first-key-guide kbd {display:inline-block;margin-right:5px;padding:2px 6px;border:1px solid var(--sheet-edge);border-radius:4px;color:var(--sheet-ink);font-size:.86rem}
.first-custom {min-height:44px;text-decoration:underline;text-underline-offset:3px;color:var(--sheet-ink);font:650 1rem var(--body);background:transparent;border:0;padding:4px 0;cursor:pointer}
.first-ride .first-sheet footer,.first-ride.has-riders .first-sheet footer {
  grid-row:3;position:static;display:flex;flex-direction:row;justify-content:space-between;align-items:stretch;gap:12px;
  margin:0;padding-block:10px;border-top:1px solid var(--brand-edge);background:var(--brand-navy);
}
.first-ride .first-sheet footer button,.first-ride.has-riders .first-sheet footer button {
  width:auto;min-height:46px;margin:0;border-radius:8px;font:700 1rem var(--body);padding:8px 18px;cursor:pointer;
}
.first-sheet footer .first-back {color:var(--sheet-muted);background:transparent;border:1px solid var(--sheet-edge)}
.first-sheet footer [data-first="ride"] {flex:0 1 19rem;color:var(--brand-navy);background:var(--brand-blue);border:1px solid var(--brand-blue);letter-spacing:.025em}
@media (hover:hover) { .first-sheet footer [data-first="ride"]:hover {background:var(--brand-blue-hi)} }
.first-sheet :is(button,select,input):focus-visible {outline:3px solid var(--brand-focus);outline-offset:2px}
@media (max-width:690px) and (orientation:portrait) {
  .first-ride .first-sheet .rider-lineup {grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  .first-ride .first-sheet .first-set {grid-template-columns:repeat(2,minmax(0,1fr))}
  .first-sheet .rider-card-art {max-height:8rem}
}
@media (orientation:landscape) and (max-height:570px) {
  .first-ride {padding-block:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-bottom))}
  .first-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px;padding-bottom:4px;border-bottom:1px solid var(--brand-edge)}
  .first-heading {display:contents}
  .first-tabs {margin:0;border:0;order:1}
  .first-ride .first-close {order:2}
  .first-ride .first-heading h2,.first-ride.has-riders .first-heading h2 {font-size:1.65rem}
  .first-content {padding-block:6px}
  .first-sheet .first-who-bar {margin:0 0 4px}
  .first-sheet .rider-card-art {height:clamp(50px,22dvh,96px);aspect-ratio:auto}
  .first-ride .first-sheet .rider-card {padding-bottom:3px}
  .first-ride .first-sheet footer,.first-ride.has-riders .first-sheet footer {padding-block:5px}
}
@media (pointer:coarse) {
  .first-sheet .first-touch-guide {display:block}
  .first-ride .first-sheet .first-key-guide,.first-sheet .first-key {display:none}
}
@media (prefers-reduced-motion:reduce) {
  .first-sheet * {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

.first-ride .first-drop-enter .first-look .look-you {
  animation: first-drop-reveal 430ms cubic-bezier(.2,.75,.26,1) both;
}
.first-ride .first-drop-enter .first-look .look-maker {
  animation: first-drop-reveal 430ms 75ms cubic-bezier(.2,.75,.26,1) both;
}
.look-intro { color: #cbddec; margin: 0 0 .8rem; }
@keyframes first-drop-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .first-ride .first-drop-enter .first-look .look-you,
  .first-ride .first-drop-enter .first-look .look-maker { animation: none; }
}
body.reduced-motion .first-ride .first-drop-enter .first-look .look-you,
body.reduced-motion .first-ride .first-drop-enter .first-look .look-maker { animation: none; }
