:root{
  --pb-bg-1:#0b1220;
  --pb-bg-2:#070e1a;
  --pb-bg-3:#050814;
  --pb-text:#e5e7eb;
  --pb-muted:#94a3b8;
  --pb-surface:#0f172a;
  --pb-surface-2:#111c33;
  --pb-border:rgba(148,163,184,0.20);

  --pb-accent:#3b82f6;        /* blue */
  --pb-accent-2:#10b981;      /* emerald */
  --pb-accent-soft:rgba(59,130,246,0.14);
  --pb-focus:rgba(59,130,246,0.25);
}

body{
  background: radial-gradient(circle at top, var(--pb-bg-1) 0, var(--pb-bg-2) 55%, var(--pb-bg-3) 100%);
  color: var(--pb-text);
}
.subtitle,.muted{ color: var(--pb-muted); }

.btn-primary, .primary-btn, #random-all-btn{
  border-color: rgba(59,130,246,0.55);
  background: linear-gradient(180deg, rgba(59,130,246,0.28), rgba(16,185,129,0.16));
}
.btn-primary:hover, .primary-btn:hover, #random-all-btn:hover{
  filter: brightness(1.1);
}

.tag-chip.selected{
  border-color: rgba(59,130,246,0.70);
  box-shadow: 0 0 0 2px var(--pb-focus);
}


/* Slightly larger tag chips (avoids cramped mobile taps) */
.tag{
  font-size: 0.82rem;
  padding: 0.34rem 0.75rem;
}

@media (max-width: 900px){
  .tag{ font-size: 1.02rem; padding: 0.50rem 0.85rem; }
}

/* Mobile Tags/Output tabs (sticky header view switch) */
.mobile-tabs{
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.mobile-tab{
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.40);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.5rem 1.0rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.mobile-tab:hover{
  filter: brightness(1.08);
}

.mobile-tab.is-active{
  border-color: rgba(59,130,246,0.55);
  background: linear-gradient(180deg, rgba(59,130,246,0.28), rgba(16,185,129,0.16));
  box-shadow: 0 0 0 2px rgba(59,130,246,0.18);
}

@media (max-width: 900px){
  .mobile-tabs{ display: inline-flex; }

  /* Default mobile view = Tags. Switching to Output hides tag pane. */
  body.mobile-output-mode .left-panel{ display: none !important; }
  body.mobile-output-mode .right-panel{ display: flex !important; }
  body:not(.mobile-output-mode) .left-panel{ display: flex !important; }
  body:not(.mobile-output-mode) .right-panel{ display: none !important; }
}
