/* ui/run-pick.css (S1): the run picker. A short vertical list of run names above the RUN ring, drawn in the HUD's own
   line work: a leader from the ring, one hairline and one tick per option, the current one in amber. No card, no pill.
   Sizes are multiplied by --u like the rest of the HUD. */
.rp-root{position:fixed;inset:0;z-index:30;font-family:var(--smui-font,"Barlow Condensed",system-ui,sans-serif);color:var(--ice,#d9f3ff);-webkit-user-select:none;user-select:none;touch-action:none}   /* as index.html sets it: no page pinch-zoom over the HUD */
.rp-scrim{position:absolute;inset:0;background:none;opacity:0;animation:rp-fade .24s ease-out forwards}
.rp-root.rp-out{pointer-events:none}   /* the fade-out never eats a tap */
.rp-list{position:absolute;margin:0;padding:0;list-style:none;overflow:visible;--rh:calc(44px*var(--u,1))}
/* a dark fade behind the words where they sit, clear toward the far end: the rig's lines never run through a name */
.rp-wash{position:absolute;left:calc(-18px*var(--u,1));right:calc(-40px*var(--u,1));top:calc(-22px*var(--u,1));bottom:calc(-14px*var(--u,1));pointer-events:none;z-index:-1;
  background:linear-gradient(90deg,rgba(2,5,11,.8) 0,rgba(2,5,11,.7) 55%,rgba(2,5,11,0) 100%);
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 calc(22px*var(--u,1)),#000 calc(100% - 10px),transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 calc(22px*var(--u,1)),#000 calc(100% - 10px),transparent 100%);
  opacity:0;animation:rp-fade .2s ease-out forwards}
.rp-lead{position:absolute;left:0;bottom:calc(-10px*var(--u,1));top:calc(-8px*var(--u,1));width:1px;background:linear-gradient(0deg,rgba(69,212,255,.75),rgba(190,236,255,.4));transform-origin:50% 100%;transform:scaleY(0);animation:rp-up .3s cubic-bezier(.2,.8,.2,1) forwards;pointer-events:none}
.rp-lead::before{content:"";position:absolute;left:calc(-4px*var(--u,1));top:0;width:calc(9px*var(--u,1));height:1px;background:var(--cy,#45d4ff)}
.rp-opt{position:relative;display:flex;align-items:center;box-sizing:border-box;height:var(--rh);min-height:44px;padding:0 calc(10px*var(--u,1)) 0 calc(30px*var(--u,1));cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}
.rp-opt::before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(134,178,203,.38);transform-origin:0 50%;transform:scaleX(0);animation:rp-line .34s cubic-bezier(.2,.8,.2,1) forwards;animation-delay:calc(.05s + var(--i,0)*.05s)}
.rp-opt:first-of-type::after{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:rgba(134,178,203,.38)}
/* the tick: 24 px drawn, shown at two thirds; the current, focused, hovered or pressed option's runs full length (a
   transform, springing back on release). It arrives with an opacity fade so its transform stays free for that. */
.rp-tick{position:absolute;left:0;top:50%;width:calc(24px*var(--u,1));height:1px;background:var(--dim,#86b2cb);transform-origin:0 50%;transform:scaleX(.667);opacity:0;animation:rp-fade .22s var(--e-out,ease-out) forwards;animation-delay:calc(.1s + var(--i,0)*.05s);transition:transform var(--m-release,360ms) var(--e-spring,ease-out)}
.rp-opt.is-pressed .rp-tick{transform:none;background:var(--cy,#45d4ff);transition-duration:var(--m-press,70ms);transition-timing-function:var(--e-out,ease-out)}
.rp-opt[aria-selected="true"].is-pressed .rp-tick{background:var(--hot,#ffab3d)}
.rp-opt:not([aria-selected="true"]).is-pressed .rp-t{color:#fff}
.rp-t{position:relative;font-weight:400;font-size:calc(19px*var(--u,1));line-height:1.1;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ice,#d9f3ff);text-shadow:0 0 calc(6px*var(--u,1)) #02050b,0 0 calc(2px*var(--u,1)) #02050b;opacity:0;animation:rp-fade .26s ease-out forwards;animation-delay:calc(.16s + var(--i,0)*.05s)}
.rp-opt[aria-selected="true"] .rp-t,.rp-opt[aria-selected="true"]:focus-visible .rp-t,.rp-opt[aria-selected="true"]:active .rp-t{color:var(--hot,#ffab3d);font-weight:500}
/* the variant ("4 LEGS"): a step quieter beside the name, numerals tabular */
.rp-q{font-style:normal;font-weight:500;font-size:calc(13px*var(--u,1));letter-spacing:.2em;margin-left:calc(12px*var(--u,1));color:#a9cfe2;font-variant-numeric:tabular-nums}
.rp-opt[aria-selected="true"] .rp-q{color:rgba(255,171,61,.8)}
.rp-opt[aria-selected="true"] .rp-tick{transform:none;height:2px;margin-top:-.5px;background:var(--hot,#ffab3d)}
.rp-opt[aria-selected="true"] .rp-t{padding-left:calc(0px*var(--u,1))}
.rp-opt:focus-visible .rp-tick{background:var(--cy,#45d4ff);transform:none}
.rp-opt[aria-selected="true"]:focus-visible .rp-tick{background:var(--hot,#ffab3d)}
.rp-opt:focus-visible{outline:none;background:linear-gradient(90deg,rgba(69,212,255,.14),rgba(69,212,255,0) 80%)}
.rp-opt:not([aria-selected="true"]):focus-visible .rp-t{color:#fff}
@media (hover:hover) and (pointer:fine){
  .rp-opt:hover{background:linear-gradient(90deg,rgba(69,212,255,.1),rgba(69,212,255,0) 80%)}
  .rp-opt:hover .rp-tick{transform:none;background:var(--cy,#45d4ff)}
  .rp-opt[aria-selected="true"]:hover .rp-tick{background:var(--hot,#ffab3d)}
  .rp-opt:not([aria-selected="true"]):hover .rp-t{color:#fff}
}
.rp-opt:not([aria-selected="true"]):active .rp-t{color:#fff}
.rp-root.rp-out .rp-list,.rp-root.rp-out .rp-scrim{opacity:0;transition:opacity var(--m-exit,150ms) var(--e-exit,ease-in)}
@keyframes rp-fade{to{opacity:1}}
@keyframes rp-up{to{transform:scaleY(1)}}
@keyframes rp-line{to{transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){
  .rp-scrim,.rp-wash,.rp-lead,.rp-opt::before,.rp-t{animation:none!important;opacity:1;transform:none;transition:none!important}
  .rp-tick{animation:none!important;opacity:1;transition:none!important}
  .rp-root.rp-out .rp-list,.rp-root.rp-out .rp-scrim{transition:none}
}
