/* One moving selection pill; the fixed navigation itself never moves. */
.bottom-nav{isolation:isolate}
.bottom-nav .nav-indicator{position:absolute;left:0;top:0;display:block;background:#365877;border-radius:34px;pointer-events:none;z-index:0;opacity:0;will-change:transform,width;height:0}
.bottom-nav[data-slider-ready] .nav-indicator{opacity:1;transition:transform .5s cubic-bezier(.22,.8,.25,1),width .5s cubic-bezier(.22,.8,.25,1),height .5s cubic-bezier(.22,.8,.25,1)}
.bottom-nav>button{position:relative;z-index:1;background:transparent!important;transition:color .5s ease!important;overflow:hidden}
.bottom-nav>button[aria-current="page"]{background:transparent!important;color:#fff}
.bottom-nav .nav-content{display:flex;flex-direction:inherit;align-items:center;justify-content:center;gap:inherit;pointer-events:none}
.bottom-nav .nav-label{display:inline-block;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.bottom-nav[data-slider-ready] .nav-indicator,.bottom-nav>button{transition:none!important}}

/* Only the selection pill moves; button contents stay anchored. */
.bottom-nav .nav-label,.bottom-nav .nav-content svg{animation:none!important;transform:none!important}
:root{view-transition-name:none}
#main{view-transition-name:club-page}
::view-transition-group(club-page){animation-duration:.5s;animation-timing-function:cubic-bezier(.22,.8,.25,1)}
::view-transition-old(club-page){animation:page-slide-out .5s cubic-bezier(.22,.8,.25,1) both;mix-blend-mode:normal}
::view-transition-new(club-page){animation:page-slide-in .5s cubic-bezier(.22,.8,.25,1) both;mix-blend-mode:normal}
@keyframes page-slide-in{from{transform:translateX(var(--page-enter,100%))}to{transform:translateX(0)}}
@keyframes page-slide-out{from{transform:translateX(0)}to{transform:translateX(var(--page-leave,-100%))}}
@media(prefers-reduced-motion:reduce){::view-transition-group(club-page),::view-transition-old(club-page),::view-transition-new(club-page){animation:none!important}}
/* Preserve the captured pages’ proportions during the horizontal movement. */
::view-transition-group(club-page){animation:none}
::view-transition-old(club-page),::view-transition-new(club-page){height:auto;object-fit:contain;object-position:left top}
/* Selection feedback belongs exclusively to the moving pill. */
.bottom-nav>button,.bottom-nav>button:hover:not(:disabled),.bottom-nav>button:active:not(:disabled),.bottom-nav>button:focus{background:transparent!important;box-shadow:none!important;transform:none!important;-webkit-tap-highlight-color:transparent}
.bottom-nav>button:focus:not(:focus-visible){outline:none}

/* Desktop page changes: a short blur crossfade, with no horizontal travel. */
@media (min-width:1100px) and (prefers-reduced-motion:no-preference){
 ::view-transition-old(club-page){animation:page-blur-out .3s ease-in-out both;transform:none}
 ::view-transition-new(club-page){animation:page-blur-in .3s ease-in-out both;transform:none}
}
@keyframes page-blur-out{from{opacity:1;filter:blur(0)}to{opacity:0;filter:blur(4px)}}
@keyframes page-blur-in{from{opacity:0;filter:blur(4px)}to{opacity:1;filter:blur(0)}}

/* Keep navigation above page snapshots in the View Transition top layer. */
.bottom-nav{view-transition-name:club-navigation}
::view-transition-group(club-page){z-index:1}
::view-transition-group(club-navigation){z-index:2;animation:none}
::view-transition-old(club-navigation){display:none}
::view-transition-new(club-navigation){animation:none;mix-blend-mode:normal}
