/*
 * Shared campaign navigation — the same strip on the Spin & Win page, the Arena and the invite page.
 *
 * Everything is prefixed .pb-nav because this file is loaded alongside three different stylesheets
 * (app.css, arena.css, invite.css) and must not collide with any of them. It only assumes a dark
 * background, which all three pages have.
 */

.pb-nav {
  position: relative;
  z-index: 30;
  padding: 0 0 4px;
}

.pb-nav-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.pb-nav-row::-webkit-scrollbar { display: none; }

.pb-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(246, 242, 230, .07);
  box-shadow: inset 0 0 0 1px rgba(246, 242, 230, .14);
  color: rgba(246, 242, 230, .78);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.pb-nav-link:hover {
  background: rgba(246, 242, 230, .13);
  color: #f6f2e6;
}
.pb-nav-link.is-on {
  background: linear-gradient(180deg, #f6dc94, #e5c158 48%, #b08a1b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 20px -12px rgba(201, 162, 39, .9);
  color: #2b2100;
}
.pb-nav-emoji { font-size: .98rem; line-height: 1; }

/* The shop link is the way out to the store, so it reads as the one green action. */
.pb-nav-shop {
  margin-left: auto;
  background: rgba(0, 133, 52, .3);
  box-shadow: inset 0 0 0 1px rgba(25, 179, 90, .45);
  color: #c8f5d9;
}
.pb-nav-shop:hover { background: rgba(0, 133, 52, .45); color: #fff; }

/* On a phone the row scrolls sideways, so the shop link travels with the others. */
@media (max-width: 720px) {
  .pb-nav-shop { margin-left: 0; }
  .pb-nav-row { padding-bottom: 8px; }
  .pb-nav-link { font-size: .8rem; padding: 7px 12px; }
}

/* The invite page has its own sticky header above this strip; keep them from touching. */
.pb-nav.under-header { margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .pb-nav-row { scroll-behavior: auto; }
  .pb-nav-link { transition: none; }
}

@media print {
  .pb-nav { display: none; }
}
