/* PROXIMA // Layout: play tabs along the top, manuals and reference in a
   slim left sidebar, tighter spacing everywhere. Loaded last on purpose. */
.layout {
  grid-template-columns: 184px minmax(0, 1fr);
}
.sidebar {
  padding: 12px 8px;
}
.logo {
  padding: 2px 4px 10px;
  gap: 8px;
  margin-bottom: 4px;
}
.proxima-brand-logo {
  width: 32px;
  height: 32px;
}
.logo-title {
  font-size: 12px;
  line-height: 1.15;
}
.logo .micro {
  font-size: 8px;
  letter-spacing: 1px;
}
.nav-label {
  padding: 12px 8px 4px;
  font-size: 9px;
}
.sidebar .nav-btn {
  padding: 7px 8px;
  margin: 1px 0;
  gap: 8px;
  font-size: 11.5px;
}
.sidebar .nav-btn .ico {
  font-size: 14px;
  width: 18px;
}
.side-bottom {
  padding: 12px 4px 2px;
}

/* top bar */
.topbar {
  height: 54px;
  padding: 0 18px;
}
.topbar h1 {
  font-size: 16px;
}
.top-actions {
  gap: 7px;
}

/* play tabs */
.px-playnav {
  position: sticky;
  top: 54px;
  z-index: 3;
  display: flex;
  gap: 2px;
  padding: 0 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: hsl(calc(var(--th-bh) + -5) calc(14.3% * var(--th-bs)) 6.5% / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(calc(var(--th-h) + -0.4) calc(44.6% * var(--th-s)) calc(26% + var(--th-l)));
}
.px-playtab {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #c4c9c2;
  font: 700 11px var(--head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 11px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.px-playtab .ico {
  font-size: 13px;
  color: hsl(calc(var(--th-h) + -0.7) calc(50.4% * var(--th-s)) calc(51% + var(--th-l)));
}
.px-playtab:hover {
  color: #fff;
  background: #ffffff08;
}
.px-playtab.active {
  color: hsl(calc(var(--th-h) + -1.1) calc(87.2% * var(--th-s)) calc(78% + var(--th-l)));
  border-bottom-color: var(--amber);
  background: hsl(calc(var(--th-h) + 5.8) calc(19.4% * var(--th-s)) calc(12% + var(--th-l)) / 0.7);
}
.px-playtab .bb-navdot {
  margin-left: 2px;
}

/* tighter content */
.main .content {
  padding: 14px 18px 40px;
}
.hero {
  margin: 0 0 10px;
}
.hero h2 {
  font-size: 22px;
}
.hero p {
  margin-top: 2px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
}
/* sticky helpers that sat below the old top bar */
.bb-scorecol,
.rb-side {
  top: 104px;
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: auto;
    min-height: 54px;
    flex-wrap: wrap;
    padding: 6px 12px;
  }
  .px-playnav {
    position: static;
    padding: 0 8px;
  }
}

/* Faction loading screen between screens (replaces the old pixel effect) */
.px-loadscreen {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: radial-gradient(
      circle at 50% 45%,
      hsl(calc(var(--th-h) + 0) calc(55% * var(--th-s)) calc(18% + var(--th-l)) / 0.55),
      transparent 60%
    ),
    hsl(calc(var(--th-bh) + -5) calc(20% * var(--th-bs)) 4% / 0.94);
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}
.px-loadscreen.in {
  opacity: 1;
}
.px-loadscreen.out {
  opacity: 0;
  transition-duration: 0.25s;
}
.px-load-core {
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateY(6px);
  transition: transform 0.3s ease;
}
.px-loadscreen.in .px-load-core {
  transform: none;
}
.px-load-core img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(
    0 0 14px hsl(calc(var(--th-h) + 0) calc(70% * var(--th-s)) calc(55% + var(--th-l)) / 0.55)
  );
  animation: px-load-breathe 1.2s ease-in-out infinite;
}
.px-load-core b {
  font: 700 15px var(--head);
  letter-spacing: 0.22em;
  color: hsl(calc(var(--th-h) + 0.7) calc(80% * var(--th-s)) calc(72% + var(--th-l)));
}
.px-load-core span {
  font: 700 9px var(--head);
  letter-spacing: 0.18em;
  color: #9aa49f;
}
.px-load-bar {
  position: relative;
  width: 160px;
  height: 2px;
  overflow: hidden;
  background: #ffffff18;
}
.px-load-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: hsl(calc(var(--th-h) + 0.7) calc(80% * var(--th-s)) calc(62% + var(--th-l)));
  animation: px-load-sweep 0.7s ease-in-out infinite;
}
@keyframes px-load-sweep {
  to {
    left: 100%;
  }
}
@keyframes px-load-breathe {
  50% {
    transform: scale(1.06);
  }
}
