/* Top bar, tabs, and how each tab's page is laid out. */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  background: rgba(21, 17, 58, 0.82);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.35rem; }
.brand-mark {
  padding: 0.1rem 0.55rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(160deg, #ff9a3c, #d9362f);
  box-shadow: 0 3px 0 #8f1d28;
}

.tabs { display: flex; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: var(--panel); }
.tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font: 800 0.95rem var(--font-body);
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--accent); color: var(--accent-ink); }
.tab-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.tab.active .tab-count { background: rgba(58, 36, 0, 0.18); }

main { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.view { min-height: calc(100vh - 66px); padding: 2rem 0 3rem; }

/* Packs tab: everything centered */
.view-packs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.6rem;
}
.hint { margin: 0; font-weight: 800; color: var(--muted); text-align: center; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

@media (max-width: 520px) {
  .brand-text { display: none; }
  .tab { padding: 0.5rem 0.85rem; }
}
