/* ── Shared game header ─────────────────────────────────────────────────── */
/* Used by all games. Three-column grid keeps the title centered regardless
   of whether the side slots are populated. */

.app-header {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 0;
}

.app-header > :first-child { justify-self: start; }
.app-header > :last-child  { justify-self: end; }

.app-header-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms, box-shadow 120ms, color 120ms, border-color 120ms, background 120ms;
}

.btn-pill:hover { transform: translateY(-1px); }

.btn-pill-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-pill-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-pill-primary {
  background: var(--primary-d);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 92, 246, 0.35);
}
.btn-pill-primary:hover { background: var(--primary); }

.btn-pill-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn-pill-ghost:hover { color: var(--primary); border-color: var(--primary); }

/* Empty slot placeholder so the grid still allocates the side column. */
.app-header-spacer { display: inline-block; min-width: 1px; }
