@view-transition { navigation: auto; }

.page-swipe-rail {
  position: relative;
  z-index: 910;
  display: grid;
  width: min(calc(100% - 28px), 420px);
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 8px auto 0;
  padding: 5px 8px;
  border: 1px solid #e4edef;
  border-radius: 999px;
  color: #6d7b8e;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(14,35,64,.06);
  backdrop-filter: blur(18px);
  -webkit-user-select: none;
  user-select: none;
}

.page-swipe-label {
  overflow: hidden;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-swipe-label:first-child { text-align: right; }
.page-swipe-label:last-child { text-align: left; }
.page-swipe-label.is-active { color: #0e2340; }

.page-swipe-track {
  position: relative;
  width: 86px;
  height: 34px;
  border-radius: 999px;
  background: #eef4f5;
  cursor: ew-resize;
  touch-action: none;
  outline: none;
}
.page-swipe-track:focus-visible { outline: 3px solid rgba(0,194,199,.24); outline-offset: 3px; }
.page-swipe-track::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1px;
  background: #c9d8dc;
  content: "";
  transform: translate(-50%, -50%);
}

.page-swipe-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #00c2c7;
  box-shadow: 0 5px 12px rgba(0,194,199,.2);
  transform: translateX(calc(var(--page-swipe-position, 0) * 52px));
  transition: transform 240ms cubic-bezier(.2,.78,.2,1), background 220ms ease;
}
.page-swipe-thumb i { font-size: 15px; }
.page-swipe-rail[data-current="hunt"] .page-swipe-thumb { background: var(--brand, #f5668f); }
.page-swipe-track.is-dragging .page-swipe-thumb { transition: none; }

.page-swipe-button {
  display: inline-grid;
  width: 72px;
  min-width: 72px;
  height: 46px;
  min-height: 46px;
  grid-template-rows: 22px 10px;
  align-content: center;
  place-items: center;
  gap: 1px;
  padding: 4px 6px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #00c2c7;
  box-shadow: 0 10px 24px rgba(0,194,199,.18);
}
.page-swipe-button i { font-size: 22px; }
.page-swipe-button img { width: 22px; height: 22px; object-fit: contain; filter: brightness(0) invert(1); }
.page-swipe-button span { font-size: 8px; font-weight: 780; letter-spacing: .03em; }
.page-swipe-button:active { transform: translateX(2px) scale(.97); }
.hunt-page-swipe-button { color: var(--brand-contrast, #fff); background: var(--brand, #00c2c7); box-shadow: 0 10px 24px rgba(var(--brand-rgb, 0,194,199),.18); }

body[data-page-kind="discover"] .home-heading { margin-top: 1px; }
body[data-page-kind="hunt"] .color-picker { padding-top: 2px; padding-right: 14px; padding-left: 14px; }

[data-page-swipe-root] {
  transition: transform 300ms cubic-bezier(.2,.78,.2,1), opacity 240ms ease;
}
html.is-page-dragging [data-page-swipe-root] { transform: translateX(var(--page-drag-x, 0)); transition: none; will-change: transform; }
html.is-page-leaving [data-page-swipe-root] { transform: translateX(var(--page-leave-x)); opacity: .76; }
html.page-swipe-enter-from-left [data-page-swipe-root] { animation: page-swipe-enter-left 320ms cubic-bezier(.2,.78,.2,1) both; }
html.page-swipe-enter-from-right [data-page-swipe-root] { animation: page-swipe-enter-right 320ms cubic-bezier(.2,.78,.2,1) both; }

@keyframes page-swipe-enter-left { from { opacity: .72; transform: translateX(-20%); } to { opacity: 1; transform: translateX(0); } }
@keyframes page-swipe-enter-right { from { opacity: .72; transform: translateX(20%); } to { opacity: 1; transform: translateX(0); } }

@media (min-width: 900px) {
  .page-swipe-rail { margin-top: 10px; }
  body[data-page-kind="hunt"] .color-picker { padding-top: 0; padding-right: 28px; padding-left: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-page-swipe-root], .page-swipe-thumb { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
