/* Shared shell: layout + utilities (tokens live in valor-theme.css — load theme before this). */
/* Turbo Drive top progress (same-origin navigations without full document reload). */
.turbo-progress-bar {
  background: linear-gradient(
    90deg,
    var(--bm-accent, #3d8bff),
    var(--bm-accent-bright, #5fa3ff),
    var(--bm-accent, #3d8bff)
  ) !important;
  height: 3px;
}

/* Ensure nav / links stay above stacked cards (mobile tap issues). */
a,
button {
  position: relative;
  z-index: 50;
  cursor: pointer;
}
.valor-nav-links,
.valor-nav-links a,
.nav-links,
.nav-links a {
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
}
.pcard,
.ab-card,
.game-card {
  position: relative;
  z-index: 1;
  overflow: visible;
}

@media (max-width: 600px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }
  .nav-link {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

/* BatMetric player card (shared with inline bm2-card in templates). */
.bm2-card {
  margin: 10px 14px 12px;
  padding: 12px 14px;
  background: #0a1018;
  border: 1px solid rgba(99, 179, 237, 0.22);
  border-radius: var(--valor-radius-sm, 10px);
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--valor-text, #e2e8f0);
}

/* ── Unified top bar: use on every page with player_nav ── */
.app-shell-header {
  background: var(--bm-surface-1, #11141a);
  border-bottom: 1px solid var(--bm-line-cool, rgba(255, 255, 255, 0.07));
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-shell-header .app-shell-title {
  min-width: 0;
}

.app-shell-header .app-shell-title h1 {
  font-family: var(--bm-font-display, "Oswald", "Inter", sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bm-ink, #f5f7fa);
  margin: 0;
  line-height: 1.25;
}

.app-shell-header .app-shell-title .app-shell-meta {
  font-family: var(--bm-font-body, "Inter", sans-serif);
  font-size: 0.72rem;
  color: var(--bm-ink-3, #6a7280);
  margin-top: 4px;
  max-width: 36rem;
  line-height: 1.35;
}

@media (max-width: 600px) {
  .app-shell-header {
    flex-direction: column;
    align-items: stretch;
  }

  .app-shell-header .valor-nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}
