/* /compare/ compact mobile sticky picks bar (Nov 13 2026, v1).
   Cause: once you scroll the icon grid, the dark matchup box (and its "See comparison" CTA) is off-screen, so tapping logos has no visible next step.
   Rule: only at max-width 640px, pin a 68px dark bar to the top when at least one logo is picked AND #cmp-picks is fully above the viewport AND the comparison table (#cmp-chart) is not yet in view.
   Desktop is unchanged (the bar is display:none and is never given the on-state). Existing /_astro/ CSS is not edited. */

.csb{
  display:none;
}

@media (max-width:640px){
  .csb{
    display:flex;
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:45;
    box-sizing:border-box;
    align-items:center;
    gap:12px;
    height:calc(68px + env(safe-area-inset-top,0px));
    padding:0 12px 0 14px;
    padding-top:env(safe-area-inset-top,0px);
    background:#0F1530;
    color:#fff;
    border-bottom:1px solid rgba(143,174,255,.28);
    box-shadow:0 10px 24px -14px rgba(4,8,30,.9);
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transform:translateY(-100%);
    transition:opacity .16s ease,transform .16s ease,visibility .16s;
  }
  .csb.is-on{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
    transform:none;
  }

  .csb-picks{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    flex:none;
  }
  .csb-logo{
    position:relative;
    box-sizing:border-box;
    width:44px;
    height:44px;
    border-radius:50%;
    background:#fff;
    display:grid;
    place-items:center;
    flex:none;
    padding:0;
    border:0;
    box-shadow:0 0 0 2px var(--cat,#8455B8);
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
  }
  .csb-logo img{
    width:26px;
    height:26px;
    object-fit:contain;
    pointer-events:none;
  }
  .csb-logo:focus-visible{
    outline:2px solid #F2B33D;
    outline-offset:3px;
  }
  .csb-x{
    position:absolute;
    top:-5px;
    right:-5px;
    width:18px;
    height:18px;
    border-radius:50%;
    background:#fff;
    color:#12132E;
    font:700 12px/18px Inter,system-ui,sans-serif;
    text-align:center;
    box-shadow:0 1px 3px rgba(0,0,0,.35);
    pointer-events:none;
  }
  .csb-empty{
    width:44px;
    height:44px;
    border-radius:50%;
    box-sizing:border-box;
    border:2px dashed rgba(255,255,255,.38);
    background:transparent;
    display:grid;
    place-items:center;
    color:rgba(255,255,255,.45);
    font:700 22px/1 Sora,sans-serif;
    flex:none;
  }
  .csb-vs{
    flex:none;
    font:700 10px/1 Sora,sans-serif;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#B5B0C9;
  }

  .csb-action{
    margin-left:auto;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:flex-end;
  }
  .csb-hint{
    margin:0;
    color:#B5B0C9;
    font:600 14px/1.2 Inter,system-ui,sans-serif;
    letter-spacing:.01em;
    white-space:nowrap;
  }
  .csb-cta.btn-cta{
    min-height:44px;
    height:44px;
    padding:0 16px;
    font:700 13.5px/1 Inter,system-ui,sans-serif;
    box-shadow:none;
    flex:none;
    white-space:nowrap;
  }
  .csb-cta.btn-cta .cj-ar{
    display:inline-block;
  }
  .csb-cta.is-pulse{
    animation:csb-pulse .55s ease;
  }
}

@keyframes csb-pulse{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(242,179,61,0)}
  40%{transform:scale(1.045);box-shadow:0 0 0 6px rgba(242,179,61,.3)}
  100%{transform:scale(1);box-shadow:0 0 0 0 rgba(242,179,61,0)}
}

@media (max-width:640px) and (prefers-reduced-motion:reduce){
  .csb{
    transition:opacity .16s ease,visibility .16s;
    transform:none;
  }
  .csb.is-on{transform:none}
  .csb-cta.is-pulse{animation:none}
}
